Beispiel #1
0
        private void bbtnAddCard_Click(object sender, EventArgs e)
        {
            frmAddCardWizard frm = new frmAddCardWizard();
            frm.ShowDialog();
            string CardModelNumber = frm.CardModelNumber;
            string CardRevisionNumber = frm.CardRevisionNumber;
            string CardSerialNumber = frm.CardSerialNumber;
            frm.Dispose();

            _parent.LoadForm(CardModelNumber, CardRevisionNumber, CardSerialNumber);
        }
 private void bbtnNewCard_ItemClick(object sender, ItemClickEventArgs e)
 {
     frmAddCardWizard frm = new frmAddCardWizard();
     frm.ShowDialog();
     frm.Dispose();
 }
Beispiel #3
0
        private void bbtnAddCard_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmAddCardWizard frm = new frmAddCardWizard();
            frm.ShowDialog();
            string CardModelNumber = frm.CardModelNumber;
            string CardRevisionNumber = frm.CardRevisionNumber;
            string CardSerialNumber = frm.CardSerialNumber;
            frm.Dispose();

            try
            {
                LoadForm(CardModelNumber, CardRevisionNumber, CardSerialNumber);
            }
            catch
            {
                //todo: fix this
                XtraMessageBox.Show("Error while adding card, possibly because cancel was hit");
            }
        }