Changeset 6371 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/SlaveView.cs
- Timestamp:
- 06/06/11 18:33:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/SlaveView.cs
r6263 r6371 39 39 [Content(typeof(SlaveItem), IsDefaultView = true)] 40 40 public partial class SlaveView : ItemView { 41 private SlaveDisplayStat lastSlaveDisplayStat; 42 private const string serviceName = "HeuristicLab.Clients.Hive.SlaveCore.SlaveWindowsService"; 41 43 42 44 private const UInt32 BCM_SETSHIELD = 0x160C; … … 52 54 } 53 55 } 54 55 private SlaveDisplayStat lastSlaveDisplayStat;56 56 57 57 public SlaveView() { … … 241 241 242 242 /// <summary> 243 /// shows the windows UAC dialog and restarts tray icon app243 /// Shows the windows UAC dialog and restarts tray icon app 244 244 /// </summary> 245 245 private void ElevateApplication() { 246 // Launch itself as administrator246 // launch itself as administrator 247 247 ProcessStartInfo proc = new ProcessStartInfo(Application.ExecutablePath, "showui"); 248 248 proc.UseShellExecute = true; … … 262 262 263 263 private void StartService() { 264 string serviceName = "HeuristicLab.Clients.Hive.SlaveCore.SlaveWindowsService";265 264 TimeSpan timeout = TimeSpan.FromMilliseconds(5000); 266 265 … … 284 283 285 284 private void StopService() { 286 string serviceName = "HeuristicLab.Clients.Hive.SlaveCore.SlaveWindowsService";287 285 TimeSpan timeout = TimeSpan.FromMilliseconds(7000); 288 286 … … 329 327 } 330 328 } 331 332 333 329 } 334 330 }
Note: See TracChangeset
for help on using the changeset viewer.