Commit bfc963e0 LN

bug修改

1 个父辈 9f43a902
......@@ -18,12 +18,7 @@ namespace CodeLibrary
public static string China = "zh-CN";
public static string English = "en-US";
private static Dictionary<string, string> chineseMap = new Dictionary<string, string>();
internal static string GetString(object selCamera, string v)
{
throw new NotImplementedException();
}
private static Dictionary<string, string> englishMap = new Dictionary<string, string>();
public delegate string GetLanguageDelegate();
......
......@@ -25,10 +25,12 @@ namespace CodeLibrary
// private List<string> baslerNameList = new List<string>();
// private List<string> hikNameList = new List<string>();
public FrmCodeDecode(bool eyemSel = true)
public FrmCodeDecode(bool eyemSel = true,bool eyemShow=true)
{
InitializeComponent();
chbEyem.Checked = eyemSel;
chbEyem.Visible = eyemShow;
btnScanTest.Visible = eyemShow;
}
private string selCamera = CodeResourceControl.GetString(CodeResourceControl.selCamera, "请先选择相机");
private string selImage = CodeResourceControl.GetString(CodeResourceControl.selImage, "请先选择图片");
......
......@@ -23,9 +23,14 @@ namespace CodeTest
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
HDCodeLearnHelper.LoadConfig(ConfigAppSettings.GetValue(Setting_Init.CameraName), ConfigAppSettings.GetValue(Setting_Init.CodeType));
CodeResourceControl.GetLanguageEvent += CodeResourceControl_GetLanguageEvent;
Application.Run(new FrmCodeDecode());
////Application.Run(new FrmTest());
}
private static string CodeResourceControl_GetLanguageEvent()
{
return CodeResourceControl.English;
}
}
}
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!