Пример #1
0
        private void btnDisconnect_Click(object sender, EventArgs e)
        {
            pnlNav.Height           = btnDisconnect.Height;
            pnlNav.Top              = btnDisconnect.Top;
            btnDisconnect.BackColor = System.Drawing.Color.FromArgb(46, 51, 73);
            Disconnect Session = new Disconnect();

            Session.Show();
        }
Пример #2
0
        private void askclose()
        {
            Disconnect Session = new Disconnect();

            if (Session.getAnswer())
            {
                UpdateInfo("[-] disconnected");
                UpdateStatus("");
                network.disconnect();
                this.safeclose();
            }
        }