Beispiel #1
0
 public void SetButtonState(AllButtonStates state)
 {
     btnNext.Text = Rhino.UI.Localization.LocalizeString("Next >", 1);
     SetButtonState(btnBack, state.Back);
     SetButtonState(btnNext, state.Next);
     SetButtonState(btnCancel, state.Cancel);
     if (state.Close == ButtonState.Disabled || state.Close == ButtonState.Enabled)
     {
         btnNext.Text = Rhino.UI.Localization.LocalizeString("Close", 2);
         SetButtonState(btnNext, state.Close);
     }
 }
Beispiel #2
0
 public void SetButtonState(AllButtonStates state)
 {
     btnNext.Text = Rhino.UI.Localization.LocalizeString("Next >", 1);
       SetButtonState(btnBack, state.Back);
       SetButtonState(btnNext, state.Next);
       SetButtonState(btnCancel, state.Cancel);
       if (state.Close == ButtonState.Disabled || state.Close == ButtonState.Enabled)
       {
     btnNext.Text = Rhino.UI.Localization.LocalizeString("Close", 2);
     SetButtonState(btnNext, state.Close);
       }
 }
Beispiel #3
0
        private void SetButtonState(UserControl panel)
        {
            AllButtonStates state = new AllButtonStates();

            if (panel is PanelComplete)
            {
                state.Close = ButtonState.Enabled;
                state.Back  = ButtonState.Hidden;
                state.Next  = ButtonState.Hidden;
            }
            else if (panel is PanelInitializing)
            {
                state.Cancel = ButtonState.Enabled;
                state.Next   = ButtonState.Disabled;
                state.Back   = ButtonState.Hidden;
            }
            else if (panel is PanelInstalling)
            {
                state.Cancel = ButtonState.Enabled;
                state.Next   = ButtonState.Disabled;
                state.Back   = ButtonState.Hidden;
            }
            else if (panel is PanelWelcome)
            {
                state.Cancel = ButtonState.Enabled;
                state.Next   = ButtonState.Enabled;
                state.Back   = ButtonState.Hidden;
            }
            else if (panel is PanelMessage)
            {
                state.Cancel = ButtonState.Hidden;
                state.Close  = ButtonState.Enabled;
                state.Next   = ButtonState.Hidden;
                state.Back   = ButtonState.Hidden;
            }

            SetButtonState(state);
        }
Beispiel #4
0
        private void SetButtonState(UserControl panel)
        {
            AllButtonStates state = new AllButtonStates();
              if (panel is PanelComplete)
              {
            state.Close = ButtonState.Enabled;
            state.Back = ButtonState.Hidden;
            state.Next = ButtonState.Hidden;
              }
              else if (panel is PanelInitializing)
              {
            state.Cancel = ButtonState.Enabled;
            state.Next = ButtonState.Disabled;
            state.Back = ButtonState.Hidden;
              }
              else if (panel is PanelInstalling)
              {
            state.Cancel = ButtonState.Enabled;
            state.Next = ButtonState.Disabled;
            state.Back = ButtonState.Hidden;
              }
              else if (panel is PanelWelcome)
              {
            state.Cancel = ButtonState.Enabled;
            state.Next = ButtonState.Enabled;
            state.Back = ButtonState.Hidden;
              }
              else if (panel is PanelMessage)
              {
            state.Cancel = ButtonState.Hidden;
            state.Close = ButtonState.Enabled;
            state.Next = ButtonState.Hidden;
            state.Back = ButtonState.Hidden;
              }

              SetButtonState(state);
        }