예제 #1
0
파일: Disconnected.cs 프로젝트: SObS/SLeek
        public frmDisconnected(SleekInstance instance, ClientDisconnectEventArgs e)
        {
            InitializeComponent();

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

            lblMessage.Text = e.Message;
        }
예제 #2
0
파일: Form1.cs 프로젝트: hamalawy/slmiv
        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);
        }
예제 #3
0
파일: IMTabWindow.cs 프로젝트: SObS/SLeek
 private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e)
 {
     RefreshControls();
 }
예제 #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);
        }
예제 #5
0
 private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e)
 {
     CleanUp();
 }
예제 #6
0
파일: MainForm.cs 프로젝트: SObS/SLeek
        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();
        }
예제 #7
0
파일: SLNetCom.cs 프로젝트: SObS/SLeek
        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);
        }
예제 #8
0
파일: TabsConsole.cs 프로젝트: SObS/SLeek
        private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e)
        {
            if (e.Type == NetworkManager.DisconnectType.ClientInitiated) return;

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

            tabs["main"].Select();
        }
예제 #9
0
 protected virtual void OnClientDisconnected(ClientDisconnectEventArgs e)
 {
     if (ClientDisconnected != null) ClientDisconnected(this, e);
 }
예제 #10
0
파일: Teleport.cs 프로젝트: SObS/SLeek
 private void netcom_ClientDisconnected(object sender, ClientDisconnectEventArgs e)
 {
     this.Close();
 }