Aggiunta opzione in config x trayClose (così che NON si possa chiudere da tray...) - default false x CMS/SCM

This commit is contained in:
Samuele E. Locatelli
2016-12-06 10:36:40 +01:00
parent 5dce3ef53b
commit 89488d32cd
4 changed files with 8 additions and 1 deletions
@@ -6,6 +6,7 @@
<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="windowCanMax" value="false" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="trayClose" value="false" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="defaultConfFile" value="CMS_FANUC.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
@@ -6,6 +6,7 @@
<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="windowCanMax" value="false" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="trayClose" value="false" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="defaultConfFile" value="SCM_ESA.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
+1
View File
@@ -51,6 +51,7 @@
<add key="openDumpOnStart" value="true" />
<add key="startMinimized" value="true" />
<add key="windowCanMax" value="true" />
<add key="trayClose" value="true" />
<add key="autoSaveSec" value="60" />
+5 -1
View File
@@ -190,7 +190,11 @@ namespace MTC_Adapter
{
trayMenu.Items.Add("Show MTC Adapter");
}
trayMenu.Items.Add("Close MTC Adapter");
// se è permesso tray close...
if (utils.CRB("trayClose"))
{
trayMenu.Items.Add("Close MTC Adapter");
}
}
/// <summary>