Example #1
0
 void client_SysMenuDeleteCompleted(object sender, SysMenuDeleteCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Error.Message, Utility.GetResourceStr("CONFIRMBUTTON"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result == "")
         {
             //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("DELETESUCCESSEDCONFIRM"), Utility.GetResourceStr("CONFIRMBUTTON"));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DELETESUCCESSEDCONFIRM"),
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             //刷新数据
             ShowPageStyle();
             Menu = null;
             LoadData();
         }
         else
         {
             //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result),
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         }
     }
 }
Example #2
0
 void client_SysMenuDeleteCompleted(object sender, SysMenuDeleteCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Error.Message, Utility.GetResourceStr("CONFIRMBUTTON"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result == "")
         {
             //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("DELETESUCCESSEDCONFIRM"), Utility.GetResourceStr("CONFIRMBUTTON"));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DELETESUCCESSEDCONFIRM"),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             //刷新数据
             ShowPageStyle();
             Menu = null;
             LoadData();
         }
         else
         {
             //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         }
     }
 }