private void Network_OnLogin(object sender, LoginProgressEventArgs e) { if (e.Status == LoginStatus.Success) { RefreshFriends(); } }
void Network_OnLogin(object sender, LoginProgressEventArgs e) { if (e.Status == LoginStatus.Success) { if (Client.Inventory.Store != null) UpdateFolder(Client.Inventory.Store.RootFolder.UUID); } }
void Network_OnLogin(object sender, LoginProgressEventArgs e) { if (e.Status == LoginStatus.Failed) LogText("Login failed: " + e.Message, Color.Red); else if (e.Status != LoginStatus.Success) LogText(e.Message, Color.Black); }
private void netcom_ClientLoginStatus(object sender, LoginProgressEventArgs e) { // throw new NotImplementedException(); }
protected virtual void OnClientLoginStatus(LoginProgressEventArgs e) { ClientLoginStatus?.Invoke(this, e); }
private void Network_OnLogin(object sender, LoginProgressEventArgs e) { if (!this.IsHandleCreated) return; this.BeginInvoke((MethodInvoker)delegate { btnLogin.Text = "Logout"; }); if (e.Status == LoginStatus.Success) { lock (_Accounts) { _Accounts[_Client.Self.Name] = _LoginParams.Password; if (!listNames.Items.Contains(_Client.Self.Name)) { this.BeginInvoke((MethodInvoker)delegate { int index = listNames.Items.Add(_Client.Self.Name); listNames.SelectedIndex = index; }); } } } else if (e.Status == LoginStatus.Failed) { this.BeginInvoke((MethodInvoker)delegate { btnLogin.Text = "Login"; }); } else { this.BeginInvoke((MethodInvoker)delegate { listNames.Text = _LoginParams.FirstName + " " + _LoginParams.LastName; txtPass.Text = _LoginParams.Password; }); } }
protected virtual void LoginHandler(object o, LoginProgressEventArgs e) { ConsoleLog.Debug("LoginHandler proc not overridden"); }
private void Network_LoginProgress(object sender, LoginProgressEventArgs e) { Client.Self.Chat("LoginProgress Event", 0, ChatType.Normal); Console.WriteLine("We are now in LoginProgress Event................"); //Client.Directory.StartLandSearch(DirectoryManager.SearchTypeFlags.Mainland); }
private void Network_LoginProgress(object sender, LoginProgressEventArgs e) { Client.Self.Chat("LoginProgress Event", 0, ChatType.Normal); Console.WriteLine("We are now in LoginProgress Event................"); }
static void Network_OnLogin(object sender, LoginProgressEventArgs e) { _IRC.SendMessage(_AutoJoinChannel, e.Message); }
private void netcom_ClientLoginStatus(object sender, LoginProgressEventArgs e) { switch (e.Status) { case LoginStatus.ConnectingToLogin: Console.WriteLine("Connecting to login server..."); //lblLoginStatus.Text = "Connecting to login server..."; //lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.ConnectingToSim: Console.WriteLine("Connecting to region..."); //lblLoginStatus.Text = "Connecting to region..."; //lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.Redirecting: Console.WriteLine("Redirecting..."); //lblLoginStatus.Text = "Redirecting..."; //lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.ReadingResponse: Console.WriteLine("Reading response..."); //lblLoginStatus.Text = "Reading response..."; //lblLoginStatus.ForeColor = Color.Black; break; case LoginStatus.Success: Console.WriteLine("Logged in as " + netcom.LoginOptions.FullName); //lblLoginStatus.Text = "Logged in as " + netcom.LoginOptions.FullName; //lblLoginStatus.ForeColor = Color.FromArgb(0, 128, 128, 255); //proLogin.Visible = false; //btnLogin.Text = "Logout"; //btnLogin.Enabled = true; instance.Client.Groups.RequestCurrentGroups(); /* Always Faces South, For Bots */ if (MainProgram.s_CommandLineOpts.AlwaysFaceSouth) { Console.WriteLine("Always Facing South!"); Thread.Sleep(500); instance.Client.Self.Movement.BodyRotation = instance.Client.Self.Movement.HeadRotation = new Quaternion(0.00000f, 0.00000f, 0.00000f, 1.00000f); // Face East First Thread.Sleep(500); Task.Factory.StartNew(() => { while (true) { instance.Client.Self.Movement.BodyRotation = instance.Client.Self.Movement.HeadRotation = new Quaternion(0.00000f, 0.00000f, 0.70711f, -0.70711f); Thread.Sleep(2000); } }); } /* AutoGroundSit, For Bots */ if (MainProgram.s_CommandLineOpts.AutoGroundSit) { Console.WriteLine("AutoGroundSitting..."); Thread.Sleep(5000); instance.Client.Self.SitOnGround(); Console.WriteLine("AutoGroundSat!"); } /* */ break; case LoginStatus.Failed: //lblLoginStatus.ForeColor = Color.Red; if (e.FailReason == "tos") { Console.WriteLine("Must agree to Terms of Service before logging in"); //lblLoginStatus.Text = "Must agree to Terms of Service before logging in"; //pnlTos.Visible = true; //txtTOS.Text = e.Message.Replace("\n", "\r\n"); //btnLogin.Enabled = false; } else { //lblLoginStatus.Text = e.Message; //btnLogin.Enabled = true; } Console.WriteLine("Failed to login for an unknown reason\n!!!Fail Reason:" + e.FailReason + "\n!!!Message:" + e.Message + "\n!!!Status:" + e.Status); //proLogin.Visible = false; //btnLogin.Text = "Retry"; break; case LoginStatus.None: default: throw new ArgumentOutOfRangeException(); } }
private void Netcom_ClientLoginStatus(object sender, LoginProgressEventArgs e) { Instance.TabConsole.DisplayNotificationInChat("Debug: Netcom_ClientLoginStatus.\r\n Reason: " + e.FailReason + "\r\n Message: " + e.Message + "\r\n Status: " + e.Status, ChatBufferTextStyle.Alert); }