Пример #1
0
        private void btn_showEnvironmentInfo_Click(object sender, EventArgs e)
        {
            if (cbx_targetEnvironment.SelectedItem == null)
            {
                AppUtils.NotifyUserInvalidOperation("No target environment is selected.");
                return;
            }

            EnvironmentInfo selectedEnvironmentInfo = GetSelectedEnvironment();

            var viewEnvironmentInfoForm = new ViewEnvironmentInfoForm();

            viewEnvironmentInfoForm.LoadEnvironmentInfo(selectedEnvironmentInfo);
            viewEnvironmentInfoForm.ShowDialog(this);
        }
Пример #2
0
        private void btn_showEnvironmentInfo_Click(object sender, EventArgs e)
        {
            if (cbx_targetEnvironment.SelectedItem == null)
              {
            AppUtils.NotifyUserInvalidOperation("No target environment is selected.");
            return;
              }

              EnvironmentInfo selectedEnvironmentInfo = GetSelectedEnvironment();

              var viewEnvironmentInfoForm = new ViewEnvironmentInfoForm();

              viewEnvironmentInfoForm.LoadEnvironmentInfo(selectedEnvironmentInfo);
              viewEnvironmentInfoForm.ShowDialog(this);
        }