Ejemplo n.º 1
0
 void ServiceClient_SysPermissionDeleteCompleted(object sender, SysPermissionDeleteCompletedEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Result))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
     if (e.Error != null && e.Error.Message != "")
     {
         //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"),Utility.GetResourceStr(e.Result), Utility.GetResourceStr("CONFIRMBUTTON"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("DELETESUCCESS"), Utility.GetResourceStr("CONFIRMBUTTON"));
         Permission = null;
         LoadData();
     }
 }
Ejemplo n.º 2
0
 void ServiceClient_SysPermissionDeleteCompleted(object sender, SysPermissionDeleteCompletedEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Result))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
     if (e.Error != null && e.Error.Message != "" )
     {
         //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"),Utility.GetResourceStr(e.Result), Utility.GetResourceStr("CONFIRMBUTTON"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("DELETESUCCESS"), Utility.GetResourceStr("CONFIRMBUTTON"));
         Permission = null;
         LoadData();
     }
 }