Esempio n. 1
0
 protected override void InitializeViewModel(uFrame.MVVM.ViewModels.ViewModel model)
 {
     base.InitializeViewModel(model);
     // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
     // var vm = model as MainMenuRootViewModel;
     // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
 }
        protected override void InitializeViewModel(uFrame.MVVM.ViewModels.ViewModel model)
        {
            base.InitializeViewModel(model);
            // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
            // var vm = model as SubScreenViewModel;
            // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
            var subscreenview = ((SubScreenViewModel)model);

            subscreenview.IsActive = this._IsActive;
        }
Esempio n. 3
0
        protected override void InitializeViewModel(uFrame.MVVM.ViewModels.ViewModel model)
        {
            base.InitializeViewModel(model);
            // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
            // var vm = model as LevelRootViewModel;
            // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
            var levelrootview = ((LevelRootViewModel)model);

            levelrootview.CurrentLevel = this._CurrentLevel;
        }
        protected override void InitializeViewModel(uFrame.MVVM.ViewModels.ViewModel model)
        {
            base.InitializeViewModel(model);
            // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
            // var vm = model as LoginScreenViewModel;
            // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
            var loginscreenview = ((LoginScreenViewModel)model);

            loginscreenview.Username = this._Username;
            loginscreenview.Password = this._Password;
        }
Esempio n. 5
0
        private static void DoViewModelGUI(uFrame.MVVM.ViewModels.ViewModel t)
        {
            if (t == null)
            {
                return;
            }

            var properties = t.GetViewModelProperties();

            foreach (var property in properties)
            {
                var type = property.Property.ValueType;
                DoViewModelProperty(type, property);
            }
        }
 public virtual uFrame.MVVM.Views.ViewBase ScreensCreateView(uFrame.MVVM.ViewModels.ViewModel viewModel)
 {
     return(InstantiateView(viewModel));
 }
Esempio n. 7
0
 public Signal(ViewModel viewModel)
 {
     _viewModel = viewModel;
 }