Commit d3c3df2d 刘韬

添加隐藏logo开关

1 个父辈 f688b96c
...@@ -232,7 +232,7 @@ namespace BLL ...@@ -232,7 +232,7 @@ namespace BLL
LogNet.log.Error($"{cameraName}取图失败:", e); LogNet.log.Error($"{cameraName}取图失败:", e);
} }
finally { finally {
Close(); //Close();
} }
return barcodeInfos; return barcodeInfos;
} }
......
...@@ -337,6 +337,8 @@ namespace BLL ...@@ -337,6 +337,8 @@ namespace BLL
public static MyConfig<int> REEL_ID_AutoResetStrategy; public static MyConfig<int> REEL_ID_AutoResetStrategy;
[MyConfigComment("使用扫码相机")] [MyConfigComment("使用扫码相机")]
public static MyConfig<bool> Func_UseIDCamera=false; public static MyConfig<bool> Func_UseIDCamera=false;
[MyConfigComment("隐藏软件logo")]
public static MyConfig<bool> AppUI_HideLogo=false;
public void Save() public void Save()
{ {
config.Save(); config.Save();
......
...@@ -275,7 +275,7 @@ namespace SmartScan ...@@ -275,7 +275,7 @@ namespace SmartScan
this.Controls.Add(this.BtnSet); this.Controls.Add(this.BtnSet);
this.Controls.Add(this.BtnRetrospect); this.Controls.Add(this.BtnRetrospect);
this.Controls.Add(this.BtnStart); this.Controls.Add(this.BtnStart);
this.Icon = global::SmartScan.Properties.Resources.App;
this.Name = "FrmMain"; this.Name = "FrmMain";
this.Text = "Form1"; this.Text = "Form1";
this.TitleFont = new System.Drawing.Font("宋体", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.TitleFont = new System.Drawing.Font("宋体", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
......
...@@ -25,6 +25,11 @@ namespace SmartScan ...@@ -25,6 +25,11 @@ namespace SmartScan
{ {
InitializeComponent(); InitializeComponent();
BtnStart.Tag = "not"; BtnStart.Tag = "not";
if (Config.AppUI_HideLogo)
this.Icon = null;
else
this.Icon = global::SmartScan.Properties.Resources.App;
} }
private bool CheckCamera() private bool CheckCamera()
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!