private void Img_Plus_PreviewMouseDown(object sender, MouseButtonEventArgs e) { AddCardForm AddForm = new AddCardForm(new LoginCard()); AddForm.Owner = this; AddForm.Show(); AddForm.Closed += AddForm_Closed; }
public void EditCard(int index) { AddCardForm EditForm = new AddCardForm(FM.CurrenCard[index]); EditForm.Closed += EditForm_Closed; EditForm.Show(); FM.CurrenCard.Remove(FM.CurrenCard[index]); }