Exemple #1
0
        public GrapicalUserInterface(PayrollSystem payrollSystem)
        {
            PayrollSystem = payrollSystem;

            LoginForm = new LoginForm();
            OpenLoginForm();
            EventInitialization();

            LoginForm.Login.Text    = "admin";
            LoginForm.Password.Text = "123";
        }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new LoginForm());

            var payrollSystem = new PayrollSystem();

            var gui = new GrapicalUserInterface(payrollSystem);

            Application.Run(gui.LoginForm);
        }