Beispiel #1
0
        public frmDisconnected(SleekInstance instance, ClientDisconnectEventArgs e)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            AddNetcomEvents();

            lblMessage.Text = e.Message;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e)
 {
     RefreshControls();
 }
Beispiel #4
0
        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();
 }
Beispiel #6
0
        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();
        }
Beispiel #7
0
        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);
        }
Beispiel #8
0
        private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e)
        {
            if (e.Type == NetworkManager.DisconnectType.ClientInitiated) return;

            DisposeSearchTab();
            DisposeInventoryTab();
            DisposeFriendsTab();

            tabs["main"].Select();
        }
Beispiel #9
0
 protected virtual void OnClientDisconnected(ClientDisconnectEventArgs e)
 {
     if (ClientDisconnected != null) ClientDisconnected(this, e);
 }
Beispiel #10
0
 private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e)
 {
     this.Close();
 }