private void btnadd_Click(object sender, EventArgs e)
        {
            frmaddequipments form_add_equipment = new frmaddequipments("", "", "", "", "", "", "", user, "add");

            form_add_equipment.UpdateEventHandler += F2_UpdateEventHandler1;
            form_add_equipment.Show();
        }
        private void btnedit_Click(object sender, EventArgs e)
        {
            try
            {
                string asset_number, serial_number, branch, model, desc, status, available;
                asset_number  = dataGridView1.Rows[selected_row].Cells[0].Value.ToString();
                serial_number = dataGridView1.Rows[selected_row].Cells[1].Value.ToString();
                model         = dataGridView1.Rows[selected_row].Cells[2].Value.ToString();
                desc          = dataGridView1.Rows[selected_row].Cells[3].Value.ToString();
                branch        = dataGridView1.Rows[selected_row].Cells[4].Value.ToString();
                status        = dataGridView1.Rows[selected_row].Cells[5].Value.ToString();
                available     = dataGridView1.Rows[selected_row].Cells[6].Value.ToString();
                frmaddequipments edit = new frmaddequipments(asset_number, serial_number, branch, model, desc, status, available, user, "update");
                edit.UpdateEventHandler += F2_UpdateEventHandler1;
                edit.Show();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "error", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }