/// <summary> /// Opens edit list window /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemEditListClick(object sender, RoutedEventArgs e) { if (listBox_mailing_list.SelectedValue != null) { tab_Contacts.IsSelected = false; tab_MailingLists.IsSelected = true; var name = listBox_mailing_list.SelectedValue.ToString(); LaunchNewList.Invoke(new MailingListWindow(Database, name)); } else { MessageBox.Show(Application.Current.MainWindow, "Please select a list to edit and try again.", "List Selection"); } }
/// <summary> /// Opens add list window /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemNewListClick(object sender, RoutedEventArgs e) { LaunchNewList.Invoke(new MailingListWindow(Database)); }