- Timestamp:
- 09/04/14 19:40:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBRunView.cs
r11171 r11344 21 21 22 22 using System; 23 using System.ComponentModel; 23 24 using System.Windows.Forms; 24 25 using HeuristicLab.Core.Views; … … 40 41 41 42 protected override void DeregisterContentEvents() { 42 Content. StoredChanged -= new System.EventHandler(Content_StoredChanged);43 Content.PropertyChanged -= Content_PropertyChanged; 43 44 base.DeregisterContentEvents(); 44 45 } 45 46 protected override void RegisterContentEvents() { 46 47 base.RegisterContentEvents(); 47 Content. StoredChanged += new System.EventHandler(Content_StoredChanged);48 Content.PropertyChanged += Content_PropertyChanged; 48 49 } 49 50 … … 59 60 60 61 #region Content Events 61 private void Content_StoredChanged(object sender, System.EventArgs e) { 62 storeButton.Enabled = !Content.Stored; 62 private void Content_PropertyChanged(object sender, PropertyChangedEventArgs e) { 63 if (e.PropertyName == "Stored") 64 storeButton.Enabled = !Content.Stored; 63 65 } 64 66 #endregion … … 68 70 try { 69 71 Content.Store(); 70 } 71 catch (MissingClientRegistrationException) { 72 } catch (MissingClientRegistrationException) { 72 73 MessageBox.Show("You have to register your client to be able to store OKB runs." + Environment.NewLine 73 74 + " Please click in the menu bar on Services -> Access -> Client Information and register your client. ", "Missing client registration", MessageBoxButtons.OK, MessageBoxIcon.Information); 74 } 75 catch (Exception ex) { 75 } catch (Exception ex) { 76 76 ErrorHandling.ShowErrorDialog(this, "Store failed.", ex); 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.