Exemple #1
0
        public void NotifyOccured(NotifyType notifyType, Socket socket, BaseInfo baseInfo)
        {
            switch (notifyType)
            {
            case NotifyType.Reply_UpdateUser:
            {
                UserInfo userName = (UserInfo)baseInfo;
                Login._UserInfo.Point = userName.Point;

                gridRight.Visibility = Visibility.Hidden;
                backGrid.Visibility  = Visibility.Visible;
                ChatClient.Home_MyInfo.ConvPointToCash convPointToCash = new Home_MyInfo.ConvPointToCash();

                backGrid.Children.Clear();
                backGrid.Children.Add(convPointToCash);

                TempWindowForm tempWindowForm = new TempWindowForm();
                QQMessageBox.Show(tempWindowForm, "更新成功", "提示", QQMessageBoxIcon.OK, QQMessageBoxButtons.OK);
            }
            break;

            case NotifyType.Reply_UserInfo:
            {
                Login._UserInfo               = (UserInfo)baseInfo;
                this.txtCashAmount.Content    = Login._UserInfo.Cash.ToString();
                this.txtChangingMoney.Content = (Login._UserInfo.Cash / 100 * 90).ToString();
            }
            break;
            }
        }
Exemple #2
0
        void item4_MouseUp(object sender, MouseButtonEventArgs e)
        {
            try
            {
                gridRight.Visibility = Visibility.Hidden;
                backGrid.Visibility  = Visibility.Visible;
                ChatClient.Home_MyInfo.ConvPointToCash convPointToCash = new Home_MyInfo.ConvPointToCash();


                backGrid.Children.Clear();
                backGrid.Children.Add(convPointToCash);
            }
            catch (Exception)
            { }
        }