Esempio n. 1
0
        void MeetingClient_MeetingTypeTemplateUpdateCompleted(object sender, MeetingTypeTemplateUpdateCompletedEventArgs e)
        {
            loadbar.Stop();
            if (!e.Cancelled)
            {
                //MessageBox.Show("会议类型模板信息修改成功!");
                if (e.Error == null)
                {
                    if (e.Result == "")
                    {
                        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "MEETINGTYPETEMPLATE"));
                        RefreshUI(saveType);
                    }
                    else
                    {
                        if (e.Result != "ERROR")
                        {
                            Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr(e.Result, "MEETINGTYPETEMPLATE"));
                        }
                        else
                        {
                            Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("SYSTEMERRORPLEASELINKDADMIN"));
                        }
                    }
                }
                else
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
                    return;
                }

            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
                //MessageBox.Show(e.ToString());
            }
            
        }
Esempio n. 2
0
 void MeetingClient_MeetingTypeTemplateUpdateCompleted(object sender, MeetingTypeTemplateUpdateCompletedEventArgs e)
 {
     loadbar.Stop();
     if (!e.Cancelled)
     {
         //MessageBox.Show("会议类型模板信息修改成功!");
         if (e.Error == null)
         {
             if (e.Result == "")
             {
                 Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "MEETINGTYPETEMPLATE"));
                 RefreshUI(saveType);
             }
             else
             {
                 if (e.Result != "ERROR")
                 {
                     Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr(e.Result, "MEETINGTYPETEMPLATE"));
                 }
                 else
                 {
                     Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("SYSTEMERRORPLEASELINKDADMIN"));
                 }
             }
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
             return;
         }
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         //MessageBox.Show(e.ToString());
     }
 }