예제 #1
0
        public model(viewModel view)
        {
            this.view = view;
            ran = new Random();
            ce();

            App.Current.Suspending += Current_Suspending;

        }
예제 #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.Parameter is viewModel)
     {
         view        = e.Parameter as viewModel;
         DataContext = view;
     }
     else
     {
         view = new viewModel();
         view.selectchange = selectchange;
         this.DataContext  = view;
     }
 }
예제 #3
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     view = e.Parameter as viewModel;
 }