コード例 #1
0
        private void ButtonRebootSettingsClick(object sender, EventArgs e)
        {
            var rebootForm = new RebootForm();

            //var rebootFormVm = new RebootFormVm(editForm,applicationHandlerConfig, _configuration);
            rebootForm.ShowDialog(_mainForm);
        }
コード例 #2
0
 public RebootFormVM(RebootForm rebootForm, RebootHandler rebootHandler, Configuration configuration)
 {
     _rebootForm    = rebootForm;
     _rebootHandler = rebootHandler;
     _configuration = configuration;
     _rebootForm.comboBoxRebootMode.SelectedIndex        = 0;
     _rebootForm.comboBoxRebootForce.SelectedIndex       = 0;
     _rebootForm.comboBoxRebootAfterWindow.SelectedIndex = 0;
 }