private void Main_FormClosed(object sender, FormClosedEventArgs e) { if (AccountLogin.IsLoggedIn == true) { AccountLogin.Logout(); } notifyIcon_ChatLogger.Icon = null; Environment.Exit(1); }
private void btn_logout_Click(object sender, EventArgs e) { if (AccountLogin.IsLoggedIn == true) { AccountLogin.Logout(); } else { InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Not logged!"); } }
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!"); } }
private void btn_cancel_Click(object sender, EventArgs e) { AccountLogin.Logout(); this.Close(); }