private void connect_btn_Click(object sender, EventArgs e) { if (ConnectToSqlServerSuccessful()) { if (queryForm == null) { queryForm = new Query_Form(this); //queryForm.Parent = this; queryForm.ShowDialog(this); Hide(); } } else { MessageBox.Show("Connection Failed.", "Error"); //this.serverIP_tb.Text = ""; //this.user_tb.Text = ""; //this.password_tb.Text = ""; //this.databaseName_tb.Text = ""; this.serverIP_tb.Focus(); } }
public searchItems_Form(connectServer_Form _mainForm, Query_Form _queryForm) : this() { mainForm = _mainForm; queryForm = _queryForm; AddOneLine(); }