private void ButtonEditRecipients(object sender, RoutedEventArgs e) { try { string buttonTag = (sender as Button).Tag as string; WindowRecipientsListView windowRecipientsListView = new WindowRecipientsListView(null, true) { Owner = this, Title = buttonTag }; windowRecipientsListView.ShowDialog(); } catch (Exception exc) { MessageBox.Show(this, exc.Message, string.Empty, MessageBoxButton.OK, MessageBoxImage.Error); } }