Esempio n. 1
0
 public void Dispose()
 {
     PcdmisService?.Dispose();
     MeasProgsManager.SavePrograms();
     ServerDirs.SaveDirs();
     ClosePcdmisServiceHost();
     CloseFileServiceHost();
 }
Esempio n. 2
0
        public ViewModel()
        {
            PcdmisService                = new PCDmisService();
            MeasProgsManager             = MeasProgManager.Inst;
            MeasProgsManager.SavFileName = "MeasProgs.xml";
            MeasProgsManager.LoadPrograms();
            ServerDirs = ServerDirManager.Inst;
            ServerDirManager.Inst.LoadDirs();

            ProgsSetupCommand = new DelegateCommand(ProgsSetup);
            DirsSetupCommand  = new DelegateCommand(DirsSetup);
            LogsCommand       = new DelegateCommand(ShowLogs);
        }