Esempio n. 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();
 }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public void Cancel()
 {
     this.unitsOptionsModel   = (UnitsOptionsModel)null;
     this.unitsOptionsControl = (UnitsOptionsControl)null;
 }