示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FakeAppUserRepository repo = new FakeAppUserRepository();

            Application.Run(new FormMain());
        }
示例#2
0
        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;
        }