Exemplo n.º 1
0
 public PortForwardingViewModel(IWindowManager windowManager,
                                IViewManager viewManager,
                                IViewModelFactory viewModelFactory,
                                IDialogModelFactory dialogModelFactory)
 {
     _windowManager      = windowManager;
     _viewManager        = viewManager;
     _dialogModelFactory = dialogModelFactory;
     _deviceViewModel    = viewModelFactory.CreateDeviceViewModel();
     this.DisplayName    = "Port Forwarding";
 }
Exemplo n.º 2
0
        public ShellViewModel(IWindowManager windowManager, IViewManager viewManager,
                              IViewModelFactory viewModelFactory)
        {
            this.DisplayName  = "YueDroidBox";
            _windowManager    = windowManager;
            _viewManager      = viewManager;
            _viewModelFactory = viewModelFactory;
            _deviceViewModel  = viewModelFactory.CreateDeviceViewModel();
            //InterTabClient = new CustomTabClient();
            InterTabClient = new InterTabClient();

            MenuItems = new[]
            {
                new MenuItemViewModel("Port Forwarding", _viewModelFactory.CreatePortForwardingViewModel),
                new MenuItemViewModel("Cmd Window", _viewModelFactory.CreateCmdControlViewModel),
            };
        }