Пример #1
0
        private void gunaButton2_Click(object sender, EventArgs e)
        {
            string assset_number, serial_number, branch, model, desc, status, available;

            assset_number = dataGridView1.Rows[selected_row].Cells[0].Value.ToString();
            serial_number = dataGridView1.Rows[selected_row].Cells[2].Value.ToString();
            branch        = dataGridView1.Rows[selected_row].Cells[3].Value.ToString();
            model         = dataGridView1.Rows[selected_row].Cells[4].Value.ToString();
            desc          = dataGridView1.Rows[selected_row].Cells[5].Value.ToString();
            status        = dataGridView1.Rows[selected_row].Cells[6].Value.ToString();
            available     = dataGridView1.Rows[selected_row].Cells[7].Value.ToString();


            form_add_equipment edit = new form_add_equipment(assset_number, serial_number, branch, model, desc, status, available, username, "update");

            edit.Show();
        }
Пример #2
0
        private void gunaButton1_Click(object sender, EventArgs e)
        {
            form_add_equipment form_add_equipment = new form_add_equipment("", "", "", "", "", "", "", username, "add");

            form_add_equipment.Show();
        }