Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            PrimaryForm  form       = new PrimaryForm();
            UIController controller = new UIController(form);

            Application.Run(form);
        }
Exemplo n.º 2
0
        public UIController(PrimaryForm form_to_manipulate)
        {
            this.form   = form_to_manipulate;
            menuButtons = new List <Button>()
            {
                form.NewTestButton, form.ViewTestButton, form.HelpButton, form.ExitButton
            };

            //creation of event handlers
            createButtonEvents();

            //home screen of program
            form.Load += new EventHandler(onFormLoad);
        }