Exemple #1
0
        private void newEquipment_Click(object sender, EventArgs e)
        {
            addEquipmentForm AEF = new addEquipmentForm();

            AEF.Owner = this;
            AEF.ShowDialog();
            viewEquipment();
        }
Exemple #2
0
        private void editEquipmentButton_Click(object sender, EventArgs e)
        {
            cEquipment       currentEquioment = new cEquipment((equipmentDGV.Rows[equipmentDGV.SelectedCells[0].RowIndex].DataBoundItem as cEquipment).id_equipment);
            addEquipmentForm AEF = new addEquipmentForm(currentEquioment);

            AEF.Owner = this;
            AEF.ShowDialog();
            viewEquipment();
        }