Beispiel #1
0
        private void gunaButton2_Click(object sender, EventArgs e)
        {
            string edited_user, edited_usertype, edited_branch, edited_dept;

            edited_user     = dataGridView1.Rows[selected_row].Cells[0].Value.ToString();
            edited_usertype = dataGridView1.Rows[selected_row].Cells[2].Value.ToString();
            edited_branch   = dataGridView1.Rows[selected_row].Cells[3].Value.ToString();
            edited_dept     = dataGridView1.Rows[selected_row].Cells[4].Value.ToString();

            Form_add_Account edit = new Form_add_Account(edited_user, edited_usertype, edited_branch, edited_dept, username, "update");

            edit.Show();
        }
Beispiel #2
0
        private void gunaButton1_Click(object sender, EventArgs e)
        {
            Form_add_Account addaccount = new Form_add_Account("", "", "", "", username, "add");

            addaccount.Show();
        }