예제 #1
0
 private static MessageBoxResult InlineShow(Window owner, IAMessageBox messageBox)
 {
     if (messageBox.NeedOwner)
     {
         if (owner != null)
         {
             messageBox.Owner = owner;
         }
         else if (messageBox.Owner != WindowHelper.MainFrame)
         {
             messageBox.Owner = WindowHelper.MainFrame;
         }
     }
     if (messageBox.MessageBoxImage == MessageBoxImage.None)
     {
         messageBox.MessageBoxImage = MessageBoxImage.Asterisk;
     }
     messageBox.Init();
     if (messageBox.DoModel)
     {
         messageBox.ShowDialog();
     }
     else
     {
         messageBox.Show();
     }
     return(messageBox.MessageBoxResult);
 }
예제 #2
0
        public static void InvalidUinMsg(Window owner, string uin)
        {
            Paragraph paragraph = new Paragraph();

            AddNormalText(paragraph.Inlines, Global.InvalidUinMsg);
            AddLinkText(paragraph.Inlines, "[详情请点击]", new HyperLinkObj_Url(string.Format("http://exp.qq.com/cgi-bin/present/tec_cgi_index?source_flag=0&uin={0}", uin)));
            IAMessageBox.Show(owner, paragraph.Inlines, "QQ");
        }
예제 #3
0
        public static MessageBoxResult ServerKickoutMsgBox(Window owner)
        {
            Paragraph paragraph = new Paragraph();

            AddNormalText(paragraph.Inlines, "您的QQ帐号在另一个地方登录了,您已被迫下线。\r\n\r\n请注意: 如果这不是您本人的操作,那么您的密码很可能已经泄露,建议您立刻");
            AddLinkText(paragraph.Inlines, "修改密码", new HyperLinkObj_Url(CoreMessenger.Instance.MiscHelper.TXLoadString("ConfigCenter_ChangePwd_URL")));
            AddNormalText(paragraph.Inlines, "。\n\n\n 是否重新登录?");
            return(IAMessageBox.Show(owner, paragraph.Inlines, "系统消息", MessageBoxButton.YesNo, MessageBoxImage.Exclamation));
        }
예제 #4
0
        public static MessageBoxResult CustomHeadMsgBox(Window owner)
        {
            Paragraph paragraph = new Paragraph();

            AddNormalText(paragraph.Inlines, "您没有上传自定义头像的权限,");
            AddLinkText(paragraph.Inlines, "查看详情", new HyperLinkObj_Url("http://im.qq.com/client/description/avatar.shtml"));
            AddNormalText(paragraph.Inlines, "。");
            return(IAMessageBox.Show(owner, paragraph.Inlines, "提示"));
        }
예제 #5
0
 private static MessageBoxResult InlineShow(Window owner, IAMessageBox messageBox)
 {
     if (messageBox.NeedOwner)
     {
         if (owner != null)
         {
             messageBox.Owner = owner;
         }
         else if (messageBox.Owner != WindowHelper.MainFrame)
         {
             messageBox.Owner = WindowHelper.MainFrame;
         }
     }
     if (messageBox.MessageBoxImage == MessageBoxImage.None)
     {
         messageBox.MessageBoxImage = MessageBoxImage.Asterisk;
     }
     messageBox.Init();
     if (messageBox.DoModel)
     {
         messageBox.ShowDialog();
     }
     else
     {
         messageBox.Show();
     }
     return messageBox.MessageBoxResult;
 }