示例#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;
 }