Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/20/11 16:57:04 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed Admin Views plugin dependencies
  • use settings instead of magic numbers and strings
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/Properties/Settings.Designer.cs

    r6225 r6456  
    3535            }
    3636        }
     37       
     38        [global::System.Configuration.UserScopedSettingAttribute()]
     39        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     40        [global::System.Configuration.DefaultSettingValueAttribute("showui")]
     41        public string ShowUICmd {
     42            get {
     43                return ((string)(this["ShowUICmd"]));
     44            }
     45            set {
     46                this["ShowUICmd"] = value;
     47            }
     48        }
     49       
     50        [global::System.Configuration.UserScopedSettingAttribute()]
     51        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     52        [global::System.Configuration.DefaultSettingValueAttribute("SlaveCommunicationServiceEndpoint")]
     53        public string SlaveCommunicationServiceEndpoint {
     54            get {
     55                return ((string)(this["SlaveCommunicationServiceEndpoint"]));
     56            }
     57            set {
     58                this["SlaveCommunicationServiceEndpoint"] = value;
     59            }
     60        }
    3761    }
    3862}
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/Properties/Settings.settings

    r6225 r6456  
    66      <Value Profile="(Default)">False</Value>
    77    </Setting>
     8    <Setting Name="ShowUICmd" Type="System.String" Scope="User">
     9      <Value Profile="(Default)">showui</Value>
     10    </Setting>
     11    <Setting Name="SlaveCommunicationServiceEndpoint" Type="System.String" Scope="User">
     12      <Value Profile="(Default)">SlaveCommunicationServiceEndpoint</Value>
     13    </Setting>
    814  </Settings>
    915</SettingsFile>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/SlaveItem.cs

    r6372 r6456  
    2323using System.ServiceModel;
    2424using HeuristicLab.Clients.Hive.SlaveCore.ServiceContracts;
     25using HeuristicLab.Clients.Hive.SlaveCore.Views.Properties;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    8081    public void Open() {
    8182      try {
    82         pipeFactory = new DuplexChannelFactory<ISlaveCommunication>(this, "SlaveCommunicationServiceEndpoint");
     83        pipeFactory = new DuplexChannelFactory<ISlaveCommunication>(this, Settings.Default.SlaveCommunicationServiceEndpoint);
    8384        RegisterEvents();
    8485      }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/SlaveView.cs

    r6371 r6456  
    2929using System.Windows.Forms;
    3030using System.Windows.Forms.DataVisualization.Charting;
     31using HeuristicLab.Clients.Hive.SlaveCore.Views.Properties;
    3132using HeuristicLab.Common;
    3233using HeuristicLab.Core.Views;
     
    245246    private void ElevateApplication() {
    246247      // launch itself as administrator
    247       ProcessStartInfo proc = new ProcessStartInfo(Application.ExecutablePath, "showui");
     248      ProcessStartInfo proc = new ProcessStartInfo(Application.ExecutablePath, Settings.Default.ShowUICmd);
    248249      proc.UseShellExecute = true;
    249250      proc.WorkingDirectory = Environment.CurrentDirectory;
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/app.config

    r6225 r6456  
    1111                <value>False</value>
    1212            </setting>
     13            <setting name="ShowUICmd" serializeAs="String">
     14                <value>showui</value>
     15            </setting>
     16            <setting name="SlaveCommunicationServiceEndpoint" serializeAs="String">
     17                <value>SlaveCommunicationServiceEndpoint</value>
     18            </setting>
    1319        </HeuristicLab.Clients.Hive.SlaveCore.Views.Properties.Settings>
    1420    </userSettings>
Note: See TracChangeset for help on using the changeset viewer.