Esempio n. 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());
            }
        }
Esempio n. 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";
    }
Esempio n. 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);
            }
        }
Esempio n. 6
0
 /// <summary>
 /// 登陆成功
 /// </summary>
 /// <param name="sender">发送者</param>
 /// <param name="args">登陆成功参数</param>
 private void LoginSuccess(object sender, LoginSuccessEventArgs args)
 {
     //用户状态改为在线
     instance.State = AccountState.Online;
 }
Esempio n. 7
0
 public static void InvokeLoginSuccessEvent(LoginSuccessEventArgs args)
 {
     LoginSuccessEvent?.Invoke(args);
 }
 private void EventSink_LoginAcceptedEvent(LoginSuccessEventArgs args)
 {
     ClientManager.Post(() => DismissLoginPanel());
 }
Esempio n. 9
0
 private void ClientOnLoginSuccess(IClient sender, LoginSuccessEventArgs e)
 {
 }
Esempio n. 10
0
 private void EventSink_LoginAcceptedEvent(LoginSuccessEventArgs args)
 {
     m_LoginAuthenticated = true;
 }
Esempio n. 11
0
    private void EventSink_LoginAcceptedEvent(LoginSuccessEventArgs args)
    {
        ClientManager.Post(() => DisplayLobby());

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