예제 #1
0
        private async void CommunicationService_Packet0004Received(object sender, Packet0004ReceivedEventArgs e)
        {
            if (e.IsLogoutSuccess)
            {
                ProgressRing_Information.IsActive     = false;
                TextBlock_Message.Text                = "로그아웃에 성공하였습니다";
                NotificationStoryboard.RepeatBehavior = new RepeatBehavior(1);
                NotificationStoryboard.Begin();
                OnLogoutSuccessStoryboard.Begin();
            }
            else
            {
                OnLogoutFailedStoryboard.Begin();
                ContentDialog dialog = new ContentDialog()
                {
                    Title           = "로그아웃 실패",
                    Content         = $"{e.Message}",
                    CloseButtonText = "닫기",
                    DefaultButton   = ContentDialogButton.Close
                };
                dialog.Loading += async(send, args) => await this.Blur(value : 5, duration : 1000, delay : 0).StartAsync();

                dialog.Closing += async(send, args) => await this.Blur(value : 0, duration : 500, delay : 0).StartAsync();

                await dialog.ShowAsync();
            }
        }
예제 #2
0
 private void CommunicationService_Packet0004Received(object sender, Packet0004ReceivedEventArgs e)
 {
     if (e.IsLogoutSuccess)
     {
         LogoutEnable = false;
         LoginEnable  = true;
         UserID       = String.Empty;
         UserPassword = String.Empty;
     }
     else
     {
         LogoutEnable = true;
     }
 }