private void AddSubscriptionClick(object sender, RoutedEventArgs e) { var newSubscriptionWindow = new NewSubscriptionWindow(ViewModel) { Owner = this }; newSubscriptionWindow.ShowDialog(); }
private void EditSubscription(object sender, RoutedEventArgs e) { var newSubscriptionWindow = new NewSubscriptionWindow((LogSubscription)lstSubscriptions.SelectedItem) { Owner = this }; newSubscriptionWindow.ShowDialog(); }