예제 #1
0
 public MainViewModel(IOctoService octoService, IWebsocketService websocketService, IMvxNavigationService navigationService, IMvxMessenger messenger)
 {
     _token_octo_message     = messenger.Subscribe <OctoMessage>(OnOctoMessage);
     _token_currrent_message = messenger.Subscribe <CurrentMessage>(OnCurrentMessage);
     _octoService            = octoService;
     _websocketService       = websocketService;
     _navigationService      = navigationService;
 }
 public PrinterConnectionViewModel(IOctoService octoService, IMvxMessenger messenger, IMvxNavigationService navigationService)
 {
     _octoService            = octoService;
     _token_currrent_message = messenger.Subscribe <CurrentMessage>(OnCurrentMessage);
     _navigationService      = navigationService;
     ConnectEnabled          = true;
     DisconnectEnabled       = true;
 }
예제 #3
0
 public PrintViewModel(IOctoService octoService, IMvxMessenger messenger)
 {
     _octoService            = octoService;
     _token_currrent_message = messenger.Subscribe <CurrentMessage>(OnCurrentMessage);
 }
예제 #4
0
 public ConnectionViewModel(IOctoService octoService, IMvxNavigationService navigationService)
 {
     _octoService       = octoService;
     _navigationService = navigationService;
 }