public void setModelData() { BackendLogic 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(); } }
private void ExecuteOpenStartingViewCommand() { BackendLogic backendlogic = new BackendLogic(); if (!backendlogic.istINIVorhanden()) { Messenger.Default.Send(new OpenKonfigurationViewMessage { }); } backendlogic.LoadData(); GlobalVariables.BackendServer_IP = backendlogic.getBackendIP(); GlobalVariables.BackendServer_URL = backendlogic.getURL(); GlobalVariables.BackendServer_Port = backendlogic.getBackendPort(); Messenger.Default.Send(new OpenStartingViewMessage { }); }