Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/11 18:33:03 (13 years ago)
Author:
ascheibe
Message:

#1233

  • code cleanups for slave review
  • added switch between privileged and unprivileged sandbox
  • removed childjob management because it's not used
File:
1 edited

Legend:

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

    r6263 r6371  
    3939  [Content(typeof(SlaveItem), IsDefaultView = true)]
    4040  public partial class SlaveView : ItemView {
     41    private SlaveDisplayStat lastSlaveDisplayStat;
     42    private const string serviceName = "HeuristicLab.Clients.Hive.SlaveCore.SlaveWindowsService";
    4143
    4244    private const UInt32 BCM_SETSHIELD = 0x160C;
     
    5254      }
    5355    }
    54 
    55     private SlaveDisplayStat lastSlaveDisplayStat;
    5656
    5757    public SlaveView() {
     
    241241
    242242    /// <summary>
    243     /// shows the windows UAC dialog and restarts tray icon app
     243    /// Shows the windows UAC dialog and restarts tray icon app
    244244    /// </summary>
    245245    private void ElevateApplication() {
    246       // Launch itself as administrator
     246      // launch itself as administrator
    247247      ProcessStartInfo proc = new ProcessStartInfo(Application.ExecutablePath, "showui");
    248248      proc.UseShellExecute = true;
     
    262262
    263263    private void StartService() {
    264       string serviceName = "HeuristicLab.Clients.Hive.SlaveCore.SlaveWindowsService";
    265264      TimeSpan timeout = TimeSpan.FromMilliseconds(5000);
    266265
     
    284283
    285284    private void StopService() {
    286       string serviceName = "HeuristicLab.Clients.Hive.SlaveCore.SlaveWindowsService";
    287285      TimeSpan timeout = TimeSpan.FromMilliseconds(7000);
    288286
     
    329327      }
    330328    }
    331 
    332 
    333329  }
    334330}
Note: See TracChangeset for help on using the changeset viewer.