Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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);
            }
        }