Exemple #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);
            }
        }
		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);
			}
		}