private void DeleteButtonCommandExecute() { if (!ContactViewInForm.Any()) { return; } ContactViewInForm.RemoveAt(SelectedIndex); }
private void CopyButtonCommandExecute() { if (!ContactViewInForm.Any()) { return; } if (SelectedIndex == ContactViewInForm.Count - 1) { ContactViewInForm.Add((ContactViewInForm)ContactViewInForm[SelectedIndex].Clone()); } else { ContactViewInForm.Insert(SelectedIndex + 1, (ContactViewInForm)ContactViewInForm[SelectedIndex].Clone()); } }
private void AddButtonCommandExecute() { ContactViewInForm.Add(new ContactViewInForm()); }