public void AddLog(string status, string details = "") { List <LogPost> logList = loadLogs(); logList.Add(new LogPost(this.reportingClassName, status, details)); saveLogs(logList); if (uiToUpdate != null) { uiToUpdate.UpdateUI(); } }
public void UpdateUI() { _titleBar.SetText(Controller.GetLanguage()["SetsTitle"]); _common.SetText(Controller.GetLanguage()["SetsTabCommon"]); _binds.SetText(Controller.GetLanguage()["SetsTabBinds"]); _sticks.SetText(Controller.GetLanguage()["SetsTabSticks"]); SaveBtn.SetText(Controller.GetLanguage()["SaveButton"]); _commonContent.UpdateUI(); _sticksContent.UpdateUI(); _bindsContent.UpdateUI(); }