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(); } }
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 { }); }