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(); }
void IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.unitsOptionsBorder = (UnitsOptionsControl)target; break; case 2: this.DefaultUnitsCombo = (ComboBox)target; break; default: this._contentLoaded = true; break; } }
public void Cancel() { this.unitsOptionsModel = (UnitsOptionsModel)null; this.unitsOptionsControl = (UnitsOptionsControl)null; }