private void BtnCardAdd_Click(object sender, EventArgs e)
        {
            DialogCardAdd addcard = new DialogCardAdd(db);

            addcard.ShowDialog();
            RefreshCardList();
        }
 private void BtnCardMod_Click(object sender, EventArgs e)
 {
     if (iccardBindingSource.Current != null)
     {
         Iccard        card    = ((ObjectView <Iccard>)iccardBindingSource.Current).Object;
         DialogCardAdd addcard = new DialogCardAdd(db, card);
         addcard.ShowDialog();
         BtnRefresh_Click(this, e);
     }
     else
     {
         MessageBox.Show("Choose the item you want to modify");
     }
 }