Example #1
0
        private void metroTile1_Click(object sender, EventArgs e)
        {
            Equipment obj = new Equipment();

            Model.EquipmentForm dlg = new Model.EquipmentForm();
            dlg.objEquipment = obj;
            dlg.ShowDialog();
            loadEquipmentList();
        }
Example #2
0
        private void metroGrid1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int index = e.RowIndex;

            if (!(index < 0))
            {
                DataGridViewRow     row = metroGridEquipmentList.Rows[index];
                Equipment           obj = new Equipment(row);
                Model.EquipmentForm dlg = new Model.EquipmentForm();
                dlg.objEquipment = obj;
                dlg.ShowDialog();
                loadEquipmentList();
            }
        }