Changeset 6945 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveMainViewBase.cs
- Timestamp:
- 11/02/11 18:42:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveMainViewBase.cs
r6823 r6945 61 61 #region Register Content Events 62 62 protected override void DeregisterContentEvents() { 63 Content.CoreConnectionChanged -= new EventHandler<Common.EventArgs<CoreConnection>>(Content_CoreConnectionChanged); 63 64 base.DeregisterContentEvents(); 64 65 } … … 66 67 protected override void RegisterContentEvents() { 67 68 base.RegisterContentEvents(); 69 Content.CoreConnectionChanged += new EventHandler<Common.EventArgs<CoreConnection>>(Content_CoreConnectionChanged); 70 } 71 72 void Content_CoreConnectionChanged(object sender, Common.EventArgs<CoreConnection> e) { 73 if (e.Value == CoreConnection.Offline) { 74 Connector(); 75 } 68 76 } 69 77 #endregion … … 77 85 Content.UserVisibleMessageFired += new System.EventHandler<Common.EventArgs<string>>(Content_UserVisibleMessageFired); 78 86 Task.Factory.StartNew(Connector); 87 } else { 88 Content.UserVisibleMessageFired -= new System.EventHandler<Common.EventArgs<string>>(Content_UserVisibleMessageFired); 79 89 } 80 90 }
Note: See TracChangeset
for help on using the changeset viewer.