Пример #1
0
        void OnLoginExcute(PasswordBox pass)
        {
            if (IsStringMissing(pass.Password) || IsStringMissing(this.CardWord))
            {
                XWT.MessageBox.Show("账号或密码不能为空!", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);
                return;
            }

            //启动动画
            StoryboardManager.PlayStoryboard("Story_Login", OnCompletedExcute, null);

            if (this.Check)
            {
                this.PassWord = pass.Password;
            }
            else
            {
                this.PassWord = "";
            }

            // 信息发送==>事件发布方
            send_Aggregator.GetEvent <SendMsgEvent>().Publish(MessageTypes.LOG + this.CardWord + MessageTypes.NSP + pass.Password);


            //ReceiveMsgOrder receiveMsgOrder = new ReceiveMsgOrder() { ModuleType="LOG",Sign=1,MsgContent="fff"};
            ////广播
            //receive_Aggregator.GetEvent<ReceiveMsgEvent>().Publish(receiveMsgOrder);
        }