示例#1
0
        private void OpenModule(string name, string arg = null)
        {
            HomeModule module = ModuleManager.Instance.GetModule(ModuleDef.HomeModule) as HomeModule;

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