SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
AdvancedOptionsModel.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.ComponentModel;
6 
7 namespace SeciUserInterface.Controls
8 {
9  class AdvancedOptionsModel : INotifyPropertyChanged
10  {
11  public Boolean LogValuesEnabled
12  {
13  get { return Seci.Managers.BlockMgr.LogValuesEnabled; }
14  set { Seci.Managers.BlockMgr.LogValuesEnabled = value; this.OnPropertyChanged("LogValuesEnabled"); }
15  }
16 
18  {
19  Seci.Managers.BlockMgr.OnEnableLoggingUpdated += new Seci.Managers.BlockMgr.EnableLoggingChangedEventHandler(BlockMgr_OnEnableLoggingUpdated);
20  //Seci.Managers.BlockMgr.LogValuesEnabled = Properties.Settings.Default.LogBlocks;
21  }
22 
24  {
25  this.OnPropertyChanged("LogValuesEnabled");
26  }
27 
28  private void setBindings()
29  {
30 
31  }
32 
33  public event PropertyChangedEventHandler PropertyChanged;
34 
35  protected void OnPropertyChanged(string sProp)
36  {
37  if (PropertyChanged != null)
38  {
39  PropertyChanged(this, new PropertyChangedEventArgs(sProp));
40  }
41  }
42 
43  }
44 }