/// <summary> /// 点击关闭按钮回调事件 /// </summary> private void QqForm_CloseQQHandler() { AlertConfirm("是否退出QQ监控?", "提示", () => { qqForm.CloseEx(); openControl(new GoodsControl(this)); qqForm = null; }); }
/// <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); }
/// <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); } }