protected virtual void OnClientLoginError(ClientLoginEventArgs e) { if (ClientLoginError != null) { ClientLoginError(this, e); } }
protected virtual void OnClientLoggedOut(ClientLoginEventArgs e) { if (ClientLoggedOut != null) { ClientLoggedOut(this, e); } }
private void Network_OnLogin(LoginStatus login, string message) { if (login == LoginStatus.Success) loggedIn = true; ClientLoginEventArgs ea = new ClientLoginEventArgs(login, message); if (netcomSync != null) netcomSync.BeginInvoke(new OnClientLoginRaise(OnClientLoginStatus), new object[] { ea }); else OnClientLoginStatus(ea); }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { if (e.Status == LoginStatus.Success) Close(); }
protected virtual void OnClientLoginError(ClientLoginEventArgs e) { if (ClientLoginError != null) ClientLoginError(this, e); }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { switch (e.Status) { case LoginStatus.ConnectingToLogin: lblLoginStatus.Text = "Connecting to login server..."; lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.ConnectingToSim: lblLoginStatus.Text = "Connecting to region..."; lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.Redirecting: lblLoginStatus.Text = "Redirecting..."; lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.ReadingResponse: lblLoginStatus.Text = "Reading response..."; lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.Success: lblLoginStatus.Text = "Logged in as " + netcom.LoginOptions.FullName; lblLoginStatus.ForeColor = Color.Blue; proLogin.Visible = false; btnLogin.Text = "Logout"; btnLogin.Enabled = true; break; case LoginStatus.Failed: lblLoginStatus.Text = e.Message; lblLoginStatus.ForeColor = Color.Red; proLogin.Visible = false; btnLogin.Text = "Retry"; btnLogin.Enabled = true; break; } }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { if (e.Status == LoginStatus.Success) agentUpdateTicker.Enabled = true; }
protected virtual void OnClientLoggedOut(ClientLoginEventArgs e) { if (ClientLoggedOut != null) ClientLoggedOut(this, e); }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { if (e.Status != LoginStatus.Success) return; cbxInput.Enabled = true; btnSay.Enabled = true; btnShout.Enabled = true; }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { if (e.Status != LoginStatus.Success) return; RefreshControls(); }
private void netcom_ClientLoggedOut(object sender, ClientLoginEventArgs e) { btnLogin.Enabled = true; }
private void netcom_ClientLoginError(object sender, ClientLoginEventArgs e) { rtbStatus.Text = e.LoginReply; btnLogin.Enabled = true; }
private void netcom_ClientLoggedIn(object sender, ClientLoginEventArgs e) { //Check if we've already created the chatscreen //and react approprietly. if(!mainCreated){ //create the chat screen and send ourselves //so the chatscreen can reference us easily. MainForm.Show(); mainCreated = true; MainForm.loginVisible = false; this.Hide(); }else{ MainForm.Focus(); this.Hide(); } }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { if (e.Status != LoginStatus.Success) return; InitializeFriendsTab(); InitializeInventoryTab(); InitializeSearchTab(); if (selectedTab.Name == "main") tabs["chat"].Select(); client.Self.RetrieveInstantMessages(); }
protected virtual void OnClientLoginStatus(ClientLoginEventArgs e) { if (ClientLoginStatus != null) ClientLoginStatus(this, e); }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { if (e.Status != LoginStatus.Success) return; tbtnStatus.Enabled = tbtnControl.Enabled = tbtnTeleport.Enabled = tbtnObjects.Enabled = true; statusTimer.Start(); RefreshWindowTitle(); }
private void netcom_ClientLoggedIn(object sender, ClientLoginEventArgs e) { mnuLoginout.Text = "&Logout"; txtInput.Enabled = true; cbxChatType.Enabled = true; this.RefreshWindowTitle(); }
private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { if (e.Status == LoginStatus.Success) { ChatBufferItem loggedIn = new ChatBufferItem( DateTime.Now, "Logged into Second Life as " + netcom.LoginOptions.FullName + ".", ChatBufferTextStyle.StatusBlue); ChatBufferItem loginReply = new ChatBufferItem( DateTime.Now, "Login reply: " + e.Message, ChatBufferTextStyle.StatusDarkBlue); ProcessBufferItem(loggedIn, true); ProcessBufferItem(loginReply, true); } else if (e.Status == LoginStatus.Failed) { ChatBufferItem loginError = new ChatBufferItem( DateTime.Now, "Login error: " + e.Message, ChatBufferTextStyle.Error); ProcessBufferItem(loginError, true); } }
private void netcom_ClientLoggedOut(object sender, ClientLoginEventArgs e) { textPrinter.ForeColor = colorProgram; textPrinter.PrintTextLine("Logged out of Second Life."); textPrinter.ForeColor = colorSLSystem; textPrinter.PrintTextLine("Logout reply: " + e.LoginReply); }
/// <summary> /// Handle SL Connection success and failures /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void netcom_ClientLoginStatus(object sender, ClientLoginEventArgs e) { switch (e.Status) { case NetworkManager.LoginStatus.Success: pBarConnection.Visible = false; //Refresh all the SL values and their labels and buttons RefreshSLValues();//Must refresh while logged in to update labels DoSLInventory(); break; case NetworkManager.LoginStatus.Failed: pBarConnection.Visible = false; labelSLConnection.Text = e.Message; client.Log("[SLMIV] " + DateTime.Now.ToShortTimeString() + e.Message, Helpers.LogLevel.Error); this.labelSLConnection.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); labelSLConnection.ForeColor = Color.Red; break; } //Refresh all the SL values and their labels and buttons RefreshSLValues(); }
private void netcom_ClientLoginError(object sender, ClientLoginEventArgs e) { textPrinter.ForeColor = colorSLSystem; textPrinter.PrintTextLine("Login error: " + e.LoginReply); }
private void netcom_ClientLoggedOut(object sender, ClientLoginEventArgs e) { mnuLoginout.Text = "&Login..."; cbxChatType.Enabled = false; txtInput.Enabled = false; btnSend.Enabled = false; this.RefreshWindowTitle(); }
private void netcom_ClientLoggedIn(object sender, ClientLoginEventArgs e) { textPrinter.ForeColor = colorProgram; textPrinter.PrintTextLine("Logged into Second Life as " + netcom.LoginOptions.FullName + "."); textPrinter.ForeColor = colorSLSystem; textPrinter.PrintTextLine("Login reply: " + e.LoginReply); }