예제 #1
0
        public async void onLoginSuccess(object source, LoginSuccessEventArgs args)
        {
            StatusText.Text = "READY";
            await Task.Delay(1000);

            progring.IsActive        = false;
            progring.Visibility      = Visibility.Collapsed;
            LoadText.Visibility      = Visibility.Collapsed;
            MyAutoSuggest.IsEnabled  = true;
            HospDocSuggest.IsEnabled = true;
            NavView.IsEnabled        = true;
            //OpenBtn.IsEnabled = true;
            //AppBtn.IsEnabled = true;
            //Dashboardbtn.IsEnabled = true;
            StatusText.Visibility = Visibility.Collapsed;
            if (args.ct > 1)
            {
                ct = args.ct;
                myFrame.Navigate(typeof(Dashboard), new navargs {
                    name = viewModel.loc, location = true, mp = this
                },
                                 new SuppressNavigationTransitionInfo());
            }
            else
            {
                //Dashboardbtn.Visibility = Visibility.Collapsed;
                myFrame.Navigate(typeof(MainPageBuffer), new navargs {
                    name = viewModel.loc, location = true, mp = this
                },
                                 new SuppressNavigationTransitionInfo());
            }
        }
예제 #2
0
 private void ClientOnLoginSuccess(IClient sender, LoginSuccessEventArgs eventargs)
 {
     if (_started)
     {
         Call();
     }
 }
    public void HandleLoginSuccess(object sender, LoginSuccessEventArgs args)
    {
        String zplayId = args.Message;

        print("AntiAddiction---HandleLoginSuccess: " + zplayId);
        showZplayIdText.text = "ZplayId : " + zplayId;
        statusText.text      = "HandleLoginSuccess";
    }
예제 #4
0
 void loginSuccess(string zplayId)
 {
     Debug.Log("-----loginSuccess zplayId: " + zplayId);
     if (OnLoginSuccess != null)
     {
         LoginSuccessEventArgs args = new LoginSuccessEventArgs()
         {
             Message = zplayId
         };
         OnLoginSuccess(this, args);
     }
 }
        private static void loginSuccessCallback(IntPtr notificationClient, string zplayID)
        {
            NotificationClient client = IntPtrToNotifiactionClient(notificationClient);

            if (client.OnLoginSuccess != null)
            {
                LoginSuccessEventArgs args = new LoginSuccessEventArgs()
                {
                    Message = zplayID
                };
                client.OnLoginSuccess(client, args);
            }
        }
예제 #6
0
 /// <summary>
 /// 登陆成功
 /// </summary>
 /// <param name="sender">发送者</param>
 /// <param name="args">登陆成功参数</param>
 private void LoginSuccess(object sender, LoginSuccessEventArgs args)
 {
     //用户状态改为在线
     instance.State = AccountState.Online;
 }
예제 #7
0
 public static void InvokeLoginSuccessEvent(LoginSuccessEventArgs args)
 {
     LoginSuccessEvent?.Invoke(args);
 }
예제 #8
0
 private void EventSink_LoginAcceptedEvent(LoginSuccessEventArgs args)
 {
     ClientManager.Post(() => DismissLoginPanel());
 }
예제 #9
0
 private void ClientOnLoginSuccess(IClient sender, LoginSuccessEventArgs e)
 {
 }
예제 #10
0
 private void EventSink_LoginAcceptedEvent(LoginSuccessEventArgs args)
 {
     m_LoginAuthenticated = true;
 }
예제 #11
0
    private void EventSink_LoginAcceptedEvent(LoginSuccessEventArgs args)
    {
        ClientManager.Post(() => DisplayLobby());

        ClientManager.Post(() => SetUsernameLabel(args.Account.Username));
    }