Exemplo n.º 1
0
 //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();
 }
Exemplo n.º 2
0
        /** 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();
        }
Exemplo n.º 3
0
 private void loginButton_Click(object sender, EventArgs e)
 {
     GraphsAPIHandler.Login();
     this.Hide();
 }