public frmDisconnected(SleekInstance instance, ClientDisconnectEventArgs e) { InitializeComponent(); this.instance = instance; netcom = this.instance.Netcom; AddNetcomEvents(); lblMessage.Text = e.Message; }
private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e) { if (e.Type == NetworkManager.DisconnectType.ClientInitiated) return; //(new SLMIV.Utils.Forms.frmDisconnected(e)).ShowDialog(); MessageBox.Show(e.Message, "Lost Connection...", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e) { RefreshControls(); }
private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e) { if (e.Type == NetworkManager.DisconnectType.ClientInitiated) return; ChatBufferItem item = new ChatBufferItem( DateTime.Now, "Client disconnected. Message: " + e.Message, ChatBufferTextStyle.Error); ProcessBufferItem(item, true); }
private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e) { CleanUp(); }
private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e) { if (e.Type == NetworkManager.DisconnectType.ClientInitiated) return; tbtnStatus.Enabled = tbtnControl.Enabled = tbtnTeleport.Enabled = tbtnObjects.Enabled = false; statusTimer.Stop(); RefreshStatusBar(); RefreshWindowTitle(); (new frmDisconnected(instance, e)).ShowDialog(); }
private void Network_OnDisconnected(NetworkManager.DisconnectType type, string message) { if (!loggedIn) return; loggedIn = false; ClientDisconnectEventArgs ea = new ClientDisconnectEventArgs(type, message); if (netcomSync != null) netcomSync.BeginInvoke(new OnClientDisconnectRaise(OnClientDisconnected), new object[] { ea }); else OnClientDisconnected(ea); }
private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e) { if (e.Type == NetworkManager.DisconnectType.ClientInitiated) return; DisposeSearchTab(); DisposeInventoryTab(); DisposeFriendsTab(); tabs["main"].Select(); }
protected virtual void OnClientDisconnected(ClientDisconnectEventArgs e) { if (ClientDisconnected != null) ClientDisconnected(this, e); }
private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e) { this.Close(); }