public void SetInfo(GuiInfo info, object value) { this.Dispatch(() => { Log($"Set {info} = {value}"); try { string txt = value?.ToString(); switch (info) { case GuiInfo.VISIBILITY: RefreshInfo(); App.CheckStatusTask(false); Show(); break; case GuiInfo.APP_UPDATE: case GuiInfo.MOD_LIST: break; default: SharedGui.SetInfo(info, value); break; } } catch (Exception ex) { Log(ex); } }); }
private void BrowseGame() { if (SharedGui.BrowseGame()) { App.CheckStatusTask(false); } }
public void Prompt(AppAction action, PromptFlag flags = PromptFlag.NONE, Exception ex = null) { this.Dispatch(() => { try { Log($"Prompt {action} {flags}"); if (SharedGui.AppState == "modnix" || SharedGui.AppState == "both") { EnableLaunch(); } SharedGui.Prompt(action, flags, ex, () => { AppControl.Explore(App.ModGuiExe); Close(); }); } catch (Exception err) { Log(err); } }); }