Example #1
0
        /// <summary>
        /// 保存完毕事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void RoleClient_BatchAddRoleEntityPermissionInfosCompleted(object sender, BatchAddRoleEntityPermissionInfosCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (!e.Cancelled)
            {
                if (e.Result)
                {
                    ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "设置成功", Utility.GetResourceStr("CONFIRMBUTTON"));

                    RefreshUI(RefreshedTypes.CloseAndReloadData);
                }
                else
                {
                    ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "设置失败", Utility.GetResourceStr("CONFIRMBUTTON"));
                    return;
                }
            }
        }
Example #2
0
 void RoleClient_BatchAddRoleEntityPermissionInfosCompleted(object sender, BatchAddRoleEntityPermissionInfosCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         loadbar.Stop();
         if (e.Result)
         {
             
             ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "设置成功", Utility.GetResourceStr("CONFIRMBUTTON"));
    
             RefreshUI(RefreshedTypes.CloseAndReloadData);
             
         }
         else
         {
             ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "设置失败", Utility.GetResourceStr("CONFIRMBUTTON"));
             return;
         }
     }
 }