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(); }
public void Cancel() { this.unitsOptionsModel = (UnitsOptionsModel)null; this.unitsOptionsControl = (UnitsOptionsControl)null; }
public UnitsOptionsControl(UnitsOptionsModel unitsOptionsModel) { this.DataContext = (object)unitsOptionsModel; this.InitializeComponent(); }