private void OpenModule(string name, string arg = null) { HomeModule module = ModuleManager.Instance.GetModule(ModuleDef.HomeModule) as HomeModule; if (module != null) { module.OpenModule(name, arg); } }
public void OnUserInfoButtonClicked() { UIAPI.ShowMsgBox("重新登录", "是否重新登录?", "确定|取消", param => { if ((int)param == 0) { HomeModule module = ModuleManager.Instance.GetModule(ModuleDef.HomeModule) as HomeModule; module.TryReLogin(); } }); }