private void Export()
        {
            _logger.Info($"Export of SMS recipients starting.");

            ProgressBarViewModel pbvm = new ProgressBarViewModel(ProgressWindowTypeEnum.RecipientsExport,
                                                                 _filePath, _recipientsToExportIDlist, 0, _realmProvider);

            _manager.ShowDialog(pbvm);
        }
        public void ImportAlarms()
        {
            _logger.Info($"Opening epxport progress window.");

            ProgressBarViewModel pbvm = new ProgressBarViewModel(ProgressWindowTypeEnum.AlarmsImport, FilePath,
                                                                 null, SelectedShortPLCconnection.PLCconnectionID, _realmProvider);

            _manager.ShowDialog(pbvm);
        }
        private void ImportAlarmProfiles()
        {
            _logger.Info($"Start to import alarm profiles.");

            ProgressBarViewModel pbvm = new ProgressBarViewModel(ProgressWindowTypeEnum.ProfileIsmport,
                                                                 FilePath, null, 0, _realmProvider);

            _manager.ShowDialog(pbvm);
        }
        private void ImportSMSrecipients()
        {
            _logger.Info($"Start to import SMS recipients.");

            ProgressBarViewModel pbvm = new ProgressBarViewModel(ProgressWindowTypeEnum.RecipientsImport,
                                                                 FilePath, null, 0, _realmProvider);

            _manager.ShowDialog(pbvm);
        }
Exemple #5
0
 public void ExportAll()
 {
     ShowSaveFileDialog();
     if (_filePath != null && _filePath.Substring(_filePath.Count() - 5, 5) == ".json")
     {
         ProgressBarViewModel pbvm = new ProgressBarViewModel(ProgressWindowTypeEnum.AlarmsExport,
                                                              _filePath, GetListOfAalarmsIDtoExport(true, true), SelectedShortPLCconnection.PLCconnectionID, _realmProvider);
         _manager.ShowDialog(pbvm);
     }
 }