Пример #1
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            Equipment equip = new Equipment();

            equip.SerialNumber  = Equipments.GenerateSerialNum();
            equip.DateEntry     = DateTime.Today;
            equip.DatePurchased = DateTime.Today;
            FormEquipmentEdit form = new FormEquipmentEdit();

            form.IsNew = true;
            form.Equip = equip;
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                FillGrid();
            }
        }
Пример #2
0
 private void butGenerate_Click(object sender, EventArgs e)
 {
     Equip.SerialNumber    = Equipments.GenerateSerialNum();
     textSerialNumber.Text = Equip.SerialNumber;
 }