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