Ejemplo n.º 1
0
        public MainViewModel()
        {
            ShowImitatorCommand = new RelayCommand(OnShowImitator);
			var message = ItvManager.Connect("net.pipe://127.0.0.1/FiresecService/", GlobalSettingsHelper.GlobalSettings.Login, GlobalSettingsHelper.GlobalSettings.Password);
            if (message != null)
            {
                MessageBoxService.Show(message);
                return;
            }

            DevicesViewModel = new DevicesViewModel();
            ZonesViewModel = new ZonesViewModel();
            JournalsViewModel = new JournalsViewModel();
        }
Ejemplo n.º 2
0
        public MainViewModel()
        {
            ShowImitatorCommand = new RelayCommand(OnShowImitator);
            var message = ItvManager.Connect(AppSettingsManager.ServerAddress, AppSettingsManager.Login, AppSettingsManager.Password);
            if (message != null)
            {
                MessageBoxService.Show(message);
                return;
            }

            DevicesViewModel = new DevicesViewModel();
            ZonesViewModel = new ZonesViewModel();
            JournalsViewModel = new JournalsViewModel();
        }