コード例 #1
0
        private void btn_search_employee_Click(object sender, EventArgs e)
        {
            frm_employee frm = new frm_employee();

            frm.Name = "search";
            DialogResult res = frm.ShowDialog();

            if (res == DialogResult.Cancel)
            {
                //this.txt_emp_id.Text = frm_employee.id;
                //this.txt_emp_name.Text = frm_employee.name;
            }
        }
コード例 #2
0
ファイル: frm_add_user.cs プロジェクト: ah01436/github_clinic
        private void btn_search_employee_Click(object sender, EventArgs e)
        {
            frm_employee frm = new frm_employee();

            frm.Name               = "search";
            frm.btn_add.Visible    = false;
            frm.btn_delete.Visible = false;
            frm.btn_edit.Visible   = false;
            frm.btn_exit.Visible   = true;
            frm.btn_accept.Visible = true;

            DialogResult res = frm.ShowDialog();

            if (res == DialogResult.Cancel)
            {
                this.txt_emp_id.Text   = frm_employee.id;
                this.txt_emp_name.Text = frm_employee.name;
            }
        }
コード例 #3
0
ファイル: Main_Form.cs プロジェクト: ah01436/github_clinic
        private void msManageStaff_Click(object sender, EventArgs e)
        {
            frm_employee frm = new frm_employee();

            frm.ShowDialog();
        }