public MainAppPage(MainAppViewModel mainAppView)
 {
     InitializeComponent();
     ViewModel = mainAppView;
     mainAppView.Navigation = this.Navigation;
     BindingContext         = ViewModel;
 }
Example #2
0
 public AppViewModel()
 {
     Customers = LoadCustomers();
     LoadCustomerViewCommand    = new RelayCommand(LoadCustomerView);
     LoadLoginViewCommand       = new RelayCommand(LoadLoginView);
     LoadNewInvoiceViewCommand  = new RelayCommand(LoadNewInvoiceView);
     LoadViewInvoiceViewCommand = new RelayCommand(LoadViewInvoiceView);
     SelectedViewModel          = new MainAppViewModel();
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="mousecontroller"></param>
        /// <param name="vm"></param>
        public ActionManager(HandPositionMapper mousecontroller, MainAppViewModel vm) : base()
        {
            _viewModel       = vm;
            this.inputMapper = mousecontroller;

            model = new Model(System.IO.Path.Combine(Environment.CurrentDirectory, @"CNN\Model\gesture_model1.pb"));

            WindowController.Instance.SetAppWindow();
        }
Example #4
0
        void Awake()
        {
            model = gameObject.GetComponent <MainAppViewModel>();
            if (null == model)
            {
                throw new MissingComponentException();
            }

            model.DynamicScrollView.OnActivitiesPopulated += DisableLoadingText;
        }
		void Awake()
		{
			model = gameObject.GetComponent<MainAppViewModel>();
			if (null == model)
			{
				throw new MissingComponentException();
			}

			model.DynamicScrollView.OnActivitiesPopulated += DisableLoadingText;

		}
        public MainApp()
        {
            InitializeComponent();

            //Create and sets the view model.
            _viewModel  = new MainAppViewModel(this);
            DataContext = _viewModel;

            Resources.MergedDictionaries.Add(App.resdict);

            LinksView.ItemsSource = _viewModel.Links;

            Unloaded += _viewModel.MainApp_Unloaded;


            Messenger.Default.Register <NavigateRequest>(
                this,
                NavigateHome);
        }
Example #7
0
 public TopUpPopup()
 {
     InitializeComponent();
     BindingContext = new MainAppViewModel();
 }
 public void Initialize()
 {
     _mainAppViewModel = new MainAppViewModel();
 }
Example #9
0
 public MainPage()
 {
     InitializeComponent();
     _viewModel  = new MainAppViewModel();
     DataContext = _viewModel;
 }