public void uxFileNewCouplet_Click(object sender, RoutedEventArgs e) { var coupletWindow = new CoupletWindow(); Application.Current.MainWindow = coupletWindow; coupletWindow.Show(); this.Close(); }
public void uxRefreshRecentCouplets_Click(object sender, RoutedEventArgs e) { CoupletWindow coupletWindow = new CoupletWindow(); _mainViewModel.LoadRecents(); coupletWindow.uxCoupletRecent.DataContext = MainViewModel.Recents; coupletWindow.uxCoupletRecent.Content = MainViewModel.MostRecentCouplet.RecentContent; coupletWindow.uxExpanderRecentCoupletWindow.IsExpanded = true; }