Acme.Northwind.Install.IdentifyDatabaseForm.cmdViewHistory_Click C# (CSharp) 메소드

cmdViewHistory_Click() 개인적인 메소드

private cmdViewHistory_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void
		private void cmdViewHistory_Click(object sender, EventArgs e)
		{
			string connectionString = SqlServers.BuildConnectionString(optConnectionIntegratedSecurity.Checked, cboConnectionDatabaseName.Text, cboConnectionServerName.Text, txtConnectionUserName.Text, txtConnectionPassword.Text);

			if (!SqlServers.TestConnectionString(connectionString))
			{
				MessageBox.Show("The information does not describe a valid connection string.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
				return;
			}

			HistoryForm F = new HistoryForm(connectionString);
			F.Show();
		}