1
This commit is contained in:
@@ -267,7 +267,8 @@ namespace CleanMachineHMI.Utils
|
|||||||
{
|
{
|
||||||
var control = (KryptonComboBox)form.Controls.Find(controlCode, true)[0];
|
var control = (KryptonComboBox)form.Controls.Find(controlCode, true)[0];
|
||||||
var str = "";
|
var str = "";
|
||||||
foreach (var item in control.Items) {
|
foreach (var item in control.Items)
|
||||||
|
{
|
||||||
str += $"{item},";
|
str += $"{item},";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,7 +325,8 @@ namespace CleanMachineHMI.Utils
|
|||||||
/// <param name="txt"></param>
|
/// <param name="txt"></param>
|
||||||
private static void WriteLangFile(string fileName, string txt)
|
private static void WriteLangFile(string fileName, string txt)
|
||||||
{
|
{
|
||||||
var fileDir = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0] + "Lang\\";
|
// var fileDir = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0] + "Lang\\";
|
||||||
|
var fileDir = "Lang\\";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!Directory.Exists(fileDir))//如果文件夹不存在,就新建一个文件夹。
|
if (!Directory.Exists(fileDir))//如果文件夹不存在,就新建一个文件夹。
|
||||||
@@ -341,7 +343,8 @@ namespace CleanMachineHMI.Utils
|
|||||||
|
|
||||||
private static void AddzhCN(string key, string name, string options)
|
private static void AddzhCN(string key, string name, string options)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(options)) {
|
if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(options))
|
||||||
|
{
|
||||||
Console.WriteLine(key + "空");
|
Console.WriteLine(key + "空");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user