static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FakeAppUserRepository repo = new FakeAppUserRepository(); Application.Run(new FormMain()); }
private void button2_Click(object sender, EventArgs e) { FakeAppUserRepository loginRepo = new FakeAppUserRepository(); bool madeIt = loginRepo.Login(UsernameTextbox.Text, PasswordTextbox.Text); if (!madeIt) { Environment.Exit(0); } else { Close(); } DialogResult = DialogResult.OK; }