Пример #1
0
        //private int _selectedIndex;
        //public int SelectedIndex
        //{
        //    get { return _selectedIndex; }
        //    set
        //    {
        //        _selectedIndex = value; OnPropertyChanged("SelectedIndex");
        //        if (value.Equals(2))
        //        {
        //            Initialization();
        //        }

        //    }
        //}

        //Scheduling1ViewModel scheduling1ViewModel;
        //Scheduling2ViewModel scheduling2ViewModel;
        //Scheduling3ViewModel scheduling3ViewModel;
        //SchedulingFinalViewModel schedulingFinalViewModel;
        //WatcherSchedulingViewModel watcherSchedulingViewModel;



        public MainUI()
        {
            InitializeComponent();
            scheduling1 = new Scheduling1();
            scheduling2 = new Scheduling2();
            scheduling3 = new Scheduling3();

            WatcherSchedulingViewInstance = new WatcherScheduling();
            //SchedulingFinalViewInstance = new SchedulingFinal();

            //scheduling1ViewModel = new Scheduling1ViewModel();
            //scheduling2ViewModel = new Scheduling2ViewModel();
            //scheduling3ViewModel = new Scheduling3ViewModel();
            //schedulingFinalViewModel = new SchedulingFinalViewModel();
            //watcherSchedulingViewModel = new WatcherSchedulingViewModel();

            DataContext = scheduling1;
            //ShowScheduling1.IsChecked = true;


            //int id = LogIn.user_id;
            //using (ExamWatchesDBContext db = new ExamWatchesDBContext())
            //{
            //    CurrentUserName = db.Users.Find(id).FirstName;
            //}


            //DataContext = scheduling1ViewModel;
        }
Пример #2
0
        private void Next_Click(object sender, RoutedEventArgs e)
        {
            Scheduling3 scheduling3 = new Scheduling3();

            this.Content = scheduling3.Content;
        }