Example #1
0
        public void uxFileNewCouplet_Click(object sender, RoutedEventArgs e)
        {
            var coupletWindow = new CoupletWindow();

            Application.Current.MainWindow = coupletWindow;
            coupletWindow.Show();

            this.Close();
        }
Example #2
0
        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;
        }