public ConfigurationControl OpenControlPanel()
        {
            string window_key = "ControlPanel";
            ConfigurationControl existing_control = (ConfigurationControl)main_window.DockingManager.MakeActive(window_key);

            if (null != existing_control)
            {
                return(existing_control);
            }
            else
            {
                ConfigurationControl configuration_control = new ConfigurationControl();
                main_window.DockingManager.AddContent(window_key, "Configuration (Shift-F1)", Icons.GetAppIcon(Icons.ModuleConfiguration), true, true, configuration_control);
                return(configuration_control);
            }
        }
Example #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            #region 构造函数
            //connectionControl = new ConnectionControl();
            //connectionControl.Visible = true;
            //pnlControles.Controls.Add(connectionControl);

            //tableControl = new TableControl();
            //tableControl.Visible = false;
            //pnlControles.Controls.Add(tableControl);

            configControl         = new ConfigurationControl();
            configControl.Visible = false;
            pnlControles.Controls.Add(configControl);

            solutionControl         = new SolutionControl();
            solutionControl.Visible = false;
            pnlControles.Controls.Add(solutionControl);

            showControl(NewProjectStep.CONNECTION);
            #endregion
        }
Example #3
0
        /// <summary>
        /// OnInitialize method
        /// </summary>
        protected virtual void OnInitialize()
        {
            this.Cursor = Cursors.WaitCursor;
            this.SuspendLayout();
            try
            {
                ComponentResourceManager resources = new ComponentResourceManager(typeof(ServiceViewControl));
                this.label1.Text = resources.GetString("label1.Text");
                this.label2.Text = resources.GetString("label2.Text");
                this.label3.Text = resources.GetString("label3.Text");
                this.label4.Text = resources.GetString("label4.Text");

                ControlInstance = new ConfigurationControl(this, this.SnapIn);
                this.tableLayoutPanel.Controls.Add(ControlInstance, 0, 1);

                bool isconfigured = ManagementService.ADFSManager.IsFarmConfigured();
                _lst.Clear();
                if (isconfigured)
                {
                    int i = 3;
                    foreach (ADFSServerHost srv in ManagementService.ADFSManager.ADFSFarm.Servers)
                    {
                        bool isok             = ManagementService.ADFSManager.IsRunning(srv.FQDN);
                        ADFSServerControl crt = new ADFSServerControl(this, srv, isok);
                        _lst.Add(crt);
                        this.tableLayoutPanel.Controls.Add(crt, 0, i);
                        i++;
                    }
                }
            }
            finally
            {
                this.ResumeLayout(true);
                this.Cursor = Cursors.Default;
            }
        }
Example #4
0
        public void OnActionItemClicked(IVsInfoBarUIElement infoBarUIElement, IVsInfoBarActionItem actionItem)
        {
            var context = Convert.ToString(actionItem.ActionContext);

            switch (context)
            {
            case nameof(HyperlinkCommands.Configure):
                _ = infoBarUIElement.Unadvise(_cookie);
                var configWindow = new ConfigurationControl();
                configWindow.ShowDialog();
                break;

            case nameof(HyperlinkCommands.Later):
                _ = infoBarUIElement.Unadvise(_cookie);
                break;

            case nameof(HyperlinkCommands.No):
                NotificationService.PopMessage("Click Action", "You clicked No");
                break;

            case nameof(HyperlinkCommands.Ok):
                NotificationService.PopMessage("Click Action", "You clicked Ok");
                break;

            case nameof(HyperlinkCommands.Yes):
                NotificationService.PopMessage("Click Action", "You clicked Yes");
                break;

            default:
                //close the thingy by default
                //or throw error maybe and display to the user???

                _ = infoBarUIElement.Unadvise(_cookie);
                break;
            }
        }
 private ConfigurationControl GetHeaderNames(DataTable userInformationTable, Excel.Range range)
 {
     ConfigurationControl config = new ConfigurationControl();
     int row = 1,
         end = range.Columns.Count + 1;
     for (int column = 1; column != end; ++column)
     {
         string columnHeaderName = (range.Cells[row, column] as Excel.Range).Value2 as string;
         if (columnHeaderName != null && columnHeaderName.Length != 0)
         {
             userInformationTable.Columns.Add(columnHeaderName);
             config.colIdx.Add(column);
             config.membershipColumnIndex = (columnHeaderName == _membershipDateColName && config.membershipColumnIndex == 0) ? column : config.membershipColumnIndex;
             config.patientNameColumnIndex = (columnHeaderName == _customerNameColName && config.patientNameColumnIndex == 0) ? column : config.patientNameColumnIndex;
         }
     }
     return config;
 }