コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frm_Client clientForm = new frm_Client();

            this.Hide();
            clientForm.ShowDialog();
            this.Close();
        }
コード例 #2
0
        //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();
        }