private void button1_Click(object sender, EventArgs e) { frm_Client clientForm = new frm_Client(); this.Hide(); clientForm.ShowDialog(); this.Close(); }
//initializes client form and closes the reader private void InitializeClientForm() { frm_Client clientForm = new frm_Client(); clientForm.Username = txt_usernameLogin.TextName; clientForm.Phone = clientReader.GetString(3); clientReader.Close(); this.Hide(); clientForm.ShowDialog(); this.Close(); }