Exemplo n.º 1
0
        private void Main_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (AccountLogin.IsLoggedIn == true)
            {
                AccountLogin.Logout();
            }

            notifyIcon_ChatLogger.Icon = null;
            Environment.Exit(1);
        }
Exemplo n.º 2
0
 private void btn_logout_Click(object sender, EventArgs e)
 {
     if (AccountLogin.IsLoggedIn == true)
     {
         AccountLogin.Logout();
     }
     else
     {
         InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Not logged!");
     }
 }
Exemplo n.º 3
0
        private void btn_logout_Click(object sender, EventArgs e)
        {
            if (AccountLogin.IsLoggedIn == true)
            {
                AccountLogin.Logout();

                richtxtbox_HistoryLogs.Clear();
                richtxtbox_HistoryLogs.Text      = "Waiting for loggin...";
                richtxtbox_HistoryLogs.ForeColor = SystemColors.GrayText;
            }
            else
            {
                InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Not logged!");
            }
        }
Exemplo n.º 4
0
        private void btn_cancel_Click(object sender, EventArgs e)
        {
            AccountLogin.Logout();

            this.Close();
        }