private void buttonFacebookLogin_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 2"); this.Hide(); FormFacebookLogin fbLogin = new FormFacebookLogin(); fbLogin.Show(); }
private void button2_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 2"); if (textBox1.Text == "" || textBox1.Text == "") { MessageBox.Show("You must enter first email and password"); } else { if (!SQLFunctions.checkLogIn(SQLFunctions.getIDbyEmail(textBox1.Text), textBox2.Text)) { MessageBox.Show("Facebook link failure: unknown ID or invalid password"); } else { FormFacebookLogin fbLogin = new FormFacebookLogin(true, textBox1.Text); fbLogin.Show(); } } }