Aggunta conf e gestione x partire minimizzato
chiave app.config "startMinimized" se true resta in tray non aperto... inoltre nei deploy SCM/CMS da ora NON apre + dump in automatico
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<appSettings>
|
||||
<add key="autoLoadConf" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="openDumpOnStart" value="false" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="startMinimized" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="defaultConfFile" value="CMS_FANUC.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
</appSettings>
|
||||
</configuration>
|
||||
@@ -3,6 +3,8 @@
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<appSettings>
|
||||
<add key="autoLoadConf" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="openDumpOnStart" value="false" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="startMinimized" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="defaultConfFile" value="SCM_ESA.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
</appSettings>
|
||||
</configuration>
|
||||
@@ -44,6 +44,7 @@
|
||||
<add key="defaultEsaFile" value="EsaKvara.ini" />
|
||||
<add key="autoStartOnLoad" value="true" />
|
||||
<add key="openDumpOnStart" value="true" />
|
||||
<add key="startMinimized" value="true" />
|
||||
|
||||
<add key="autoSaveSec" value="60" />
|
||||
|
||||
|
||||
@@ -87,6 +87,11 @@ namespace MTC_Adapter
|
||||
|
||||
public MainForm()
|
||||
{
|
||||
// avvio minimizzato se richiesto
|
||||
if (utils.CRB("startMinimized"))
|
||||
{
|
||||
this.WindowState = FormWindowState.Minimized;
|
||||
}
|
||||
InitializeComponent();
|
||||
lblStatus.Text = "Loading";
|
||||
|
||||
|
||||
@@ -20,13 +20,9 @@ namespace MTC_Adapter
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
//AllocConsole();
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
|
||||
//FreeConsole();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user