示例#1
0
        public void SetModelData()
        {
            var backendLogic = new BackendLogic();

            if (backendLogic.IstINIVorhanden())
            {
                backendLogic.LoadData();
                model.Backend_IP   = backendLogic.GetBackendIP();
                model.ProtokollTyp = backendLogic.GetProtokollTyp();
                model.Port         = backendLogic.GetBackendPort();
                model.Backend_URL  = backendLogic.GetBackendURL();
            }
        }
示例#2
0
        private void ExecuteSpeicherSettingsCommand()
        {
            var backendlogic = new BackendLogic();

            backendlogic.SaveData(model.Backend_IP, model.ProtokollTyp, model.Port, model.Backend_URL);
            SendInformationMessage("Settings gespeichert");
            GlobalVariables.BackendServer_IP   = backendlogic.GetBackendIP();
            GlobalVariables.BackendServer_URL  = backendlogic.GetURL();
            GlobalVariables.BackendServer_Port = backendlogic.GetBackendPort();
            new BackendHelper().CheckServerIsOnline();
            ViewModelLocator locator = new ViewModelLocator();

            locator.Main.RaisePropertyChanged("MenuIsEnabled");
        }
        private void ExecuteOpenStartingViewCommand()
        {
            var backendlogic = new BackendLogic();

            if (!backendlogic.IstINIVorhanden())
            {
                Messenger.Default.Send <OpenKonfigurationViewMessage>(new OpenKonfigurationViewMessage {
                });
            }
            backendlogic.LoadData();
            GlobalVariables.BackendServer_IP   = backendlogic.GetBackendIP();
            GlobalVariables.BackendServer_URL  = backendlogic.GetURL();
            GlobalVariables.BackendServer_Port = backendlogic.GetBackendPort();

            Messenger.Default.Send <OpenStartingViewMessage>(new OpenStartingViewMessage {
            });
        }