//Saving the settings to the user's one drive account private void Form1_FormClosed(object sender, FormClosedEventArgs e) { GraphsAPIHandler.SaveHistory(historyResults); GraphsAPIHandler.SaveCategories(); GraphsAPIHandler.SavePrivacySettings(); GraphsAPIHandler.SaveCSESettings(); Application.Exit(); }
/** When closed we open up the search engine app. */ private void Form4_FormClosed(object sender, FormClosedEventArgs e) { PrivacyForm privacy = new PrivacyForm { StartPosition = FormStartPosition.CenterScreen }; privacy.Show(); GraphsAPIHandler.LoadCategories(); Program.LoadWhitelist(); }
private void loginButton_Click(object sender, EventArgs e) { GraphsAPIHandler.Login(); this.Hide(); }