Пример #1
0
 /// <summary>
 /// 点击关闭按钮回调事件
 /// </summary>
 private void QqForm_CloseQQHandler()
 {
     AlertConfirm("是否退出QQ监控?", "提示", () =>
     {
         qqForm.CloseEx();
         openControl(new GoodsControl(this));
         qqForm = null;
     });
 }
Пример #2
0
 /// <summary>
 /// 登录QQ
 /// </summary>
 private void LoginQQ()
 {
     if (qqForm == null)
     {
         qqForm = new QQLogin.QQMainControl();
         qqForm.IsShowAutoSend       = false;
         qqForm.IsShowCustomTemplate = false;
         qqForm.CloseQQHandler      += QqForm_CloseQQHandler;
         qqForm.BuildGoodsHandler   += QqForm_BuildGoodsHandler;
     }
     qqForm.Dock = DockStyle.Fill;
     this.QQMainView.Controls.Add(qqForm);
 }
Пример #3
0
 /// <summary>
 /// 登录QQ
 /// </summary>
 private void LoginQQ()
 {
     if (qqForm == null)
     {
         qqForm = new QQLogin.QQMainControl();
         qqForm.CloseQQHandler    += QqForm_CloseQQHandler;
         qqForm.BuildGoodsHandler += QqForm_BuildGoodsHandler;
         openControl(qqForm);
     }
     else
     {
         openControl(qqForm);
     }
 }