private void LoadConfiguration() { FileWorks fw = new FileWorks(); string path = fw.GetLoadFilePath(); if (path != "") { dbConfManager config = new dbConfManager(); if (Model.LoadServer(config.Load(path))) { Model.changeState(ModelState.configLoaded); } } }
private void LocalDBCreate() { FileWorks fw = new FileWorks(); string path = fw.GetSaveFilePath(); if (path != "") { dbManager = new dbLocalManager(path); dbManager.ReportMessage -= DbManager_ReportMessage; dbManager.ReportMessage += DbManager_ReportMessage; } Model.isLocalDBConnected = true; }
private void SaveConfiguration() { if (Model.selectedOPCserver != null) { Model.SaveServer(); } dbConfManager config = new dbConfManager(); FileWorks fw = new FileWorks(); string path = fw.GetSaveFilePath(); if (path != "") { config.Save(Model.configuredServer, path); } }