예제 #1
0
        private void btAdd_Click(object sender, EventArgs e)
        {
            string        factQuery;
            FormEmployees fe = new FormEmployees();

            factQuery = "(`surname`, `name`, `patronimyc`, `phone_number`,`position_position`) VALUES('" +
                        textBox1.Text + "', '" + textBox2.Text + "', '" + textBox3.Text + "', '" + textBox4.Text + "', '" + cbPosition.Text + "');";
            db.Add("employees", factQuery, fe.dataGridView1);
            Hide();
        }
예제 #2
0
파일: FormMain.cs 프로젝트: VitenbergVG/STO
        private void btEmployees_Click(object sender, EventArgs e)
        {
            FormEmployees fe = new FormEmployees();

            fe.ShowDialog();
        }