Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (SQL.SqlReader("Email", EmailField.Text, "Mac", SQL.sqlConnection))
     {
         this.Hide();
         FormelSamling formelsamling = new FormelSamling();
         formelsamling.Show();
         Print("did this");
         //this.Close();
         //this.Dispose();
         Print("Form Lukket");
     }
 }
Exemple #2
0
        static void Main()
        {
            Console.WriteLine("skreven linje");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // authenticate
            FormelSamling form  = new FormelSamling();
            Login         login = new Login();

            //SQL.SqlConnect();
            GetMacAddress.GetPhysicalAddress();

            // run program
            Application.Run(login);
        }