Example #1
0
        /// <summary>
        ///
        /// </summary>
        private void AddCard()
        {
            try
            {
                frmCardItem f = new frmCardItem();
                if (f.ShowDialog(this) == DialogResult.OK)
                {
                    Card c = new Card(f.CardSN, f.Person, f.Remark);
                    //2007.03.30 Added Team
                    //
                    c.Tag = f.Team;

                    XGDB.InsertCard(c);
                    LoadCardFromDB();
                    XGDB.Resolve();
                }
            }
            catch (Exception ex)
            {
                MsgBox.Show(ex.ToString());
            }
        }