예제 #1
0
 public void Commit()
 {
     if (this.unitsOptionsModel == null)
     {
         return;
     }
     this.configurationObject.Clear();
     this.unitsOptionsModel.Save(this.configurationObject);
     this.unitsOptionsModel   = (UnitsOptionsModel)null;
     this.unitsOptionsControl = (UnitsOptionsControl)null;
     this.Apply();
 }
예제 #2
0
 public void Cancel()
 {
     this.unitsOptionsModel   = (UnitsOptionsModel)null;
     this.unitsOptionsControl = (UnitsOptionsControl)null;
 }
예제 #3
0
 public UnitsOptionsControl(UnitsOptionsModel unitsOptionsModel)
 {
     this.DataContext = (object)unitsOptionsModel;
     this.InitializeComponent();
 }