Exemplo n.º 1
0
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                MainForm f = new MainForm();
                main.Init(f);

                Application.Run(f);
            }
            catch(SystemException exp)
            {
                cIAGS.PopupError(exp);
            } // catch error
        }
Exemplo n.º 2
0
        public int Init(MainForm f)
        {
            main_form = f;
            pt = main_form.progressText;
            pb = main_form.progressPerc;
            mm = main_form.menuMain;
            dg = main_form.dataGrid;
            Logout();

            // This is the DB connection switch,
            // that should be set by a config file
            //cDB.Type = "MySQL";
            cDB.Type = "Oracle";

            course_info_list.Init();
            person_list.Init();
            inst_list.Init();
            section_list.Init();
            assign_list.Init();
            signup_list.Init();
            grade_list.Init();

            section_view.Init();
            inst_signup_view.Init();
            inst_assign_view.Init();
            inst_grade_view.Init();

            return 0;
        }