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; }
public PrintViewModel(IOctoService octoService, IMvxMessenger messenger) { _octoService = octoService; _token_currrent_message = messenger.Subscribe <CurrentMessage>(OnCurrentMessage); }
public ConnectionViewModel(IOctoService octoService, IMvxNavigationService navigationService) { _octoService = octoService; _navigationService = navigationService; }