コード例 #1
0
        private void EstablishNewConnection()
        {
            frmConnectionSelection selector = new frmConnectionSelection();

            selector.SetConnectionGroupInfos(this._model.GetAvailableConnections());

            if (selector.ShowDialog() == DialogResult.OK)
            {
                ConnectionGroupInfo connectionGroup = selector.SelectedConnectionGroupInfo.ExtractSelectedGroup();

                ConnectionTabControl targetTab = GetTargetTab(connectionGroup.Name + "{" + connectionGroup.TemplateFileName + "}");

                targetTab.OpenConnection(connectionGroup);
            }
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: saycale/MSSQLServerAuditor
		private void EstablishNewConnection()
		{
			frmConnectionSelection selector = new frmConnectionSelection();

			selector.SetConnectionGroupInfos(this._model.GetAvailableConnections());

			if (selector.ShowDialog() == DialogResult.OK)
			{
				ConnectionGroupInfo connectionGroup = selector.SelectedConnectionGroupInfo.ExtractSelectedGroup();

				ConnectionTabControl targetTab = GetTargetTab(connectionGroup.Name + "{" + connectionGroup.TemplateFileName + "}");

				targetTab.OpenConnection(connectionGroup);
			}
		}