public void Dispose() { PcdmisService?.Dispose(); MeasProgsManager.SavePrograms(); ServerDirs.SaveDirs(); ClosePcdmisServiceHost(); CloseFileServiceHost(); }
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); }