protected override void NewRecord()
        {
            FormCardDetail form = new FormCardDetail();

            if (form.OpenRecord(null))
            {
                form.ShowDialog();
                RefreshData();
            }
        }
        protected override void EditRecord()
        {
            Console.Write("Done");
            DiscountCard selectedCard = GetSelectedCard();

            if (selectedCard != null)
            {
                FormCardDetail form = new FormCardDetail();
                if (form.OpenRecord(selectedCard.RecordId))
                {
                    form.ShowDialog();
                    RefreshData();
                }
            }
        }