internal void m_ExportButton_Click(object sender, EventArgs e)
            {
                switch (CurrentMachineState)
                {
                case InterfaceState.ViewState:
                    ActionResult _resu = Parent.ClearThroughCustom();
                    switch (_resu.LastActionResult)
                    {
                    case ActionResult.Result.Success:
                        break;

                    case ActionResult.Result.NotValidated:
                        CurrentMachineState = InterfaceState.EditState;
                        ShowActionResult(_resu);
                        break;

                    case ActionResult.Result.Exception:
                    default:
                        ShowActionResult(_resu);
                        break;
                    }
                    break;

                case InterfaceState.EditState:
                case InterfaceState.NewState:
                default:
                    SMError(InterfaceEvent.NewClick);
                    break;
                }
            }
 public ControlState(ControlState _old)
 {
     if (_old == null)
     {
         return;
     }
     InterfaceState = _old.InterfaceState;
 }
Ejemplo n.º 3
0
 public ControlState(ControlState oldControlState)
 {
     if (oldControlState == null)
     {
         return;
     }
     InterfaceState = oldControlState.InterfaceState;
 }
 internal ControlState(ControlState _old, GetEntitiesDelegate edc)
 {
     _edc = edc;
     if (_old == null)
     {
         return;
     }
     InterfaceState = _old.InterfaceState;
 }