コード例 #1
0
        public resultsForMore(int firstValue, resultsForMore rm, showCourseList lst, string uname)
        {
            InitializeComponent();

            pageValue   = firstValue;
            prev        = rm;
            sList       = lst;
            username    = uname;
            noOfCourses = prepareSchedule.combinationalSchedules[0].courses.Count;

            if (firstValue == prepareSchedule.combinationalSchedules.Count)
            {
                nxtBtn.Visible = false;
            }

            clbl           = new Label[10];
            tlbl           = new Label[20];
            pageShow.Text  = "Page no: " + pageValue.ToString() + "\n";
            pageShow.Text += "Total produced: ";
            pageShow.Text += prepareSchedule.combinationalSchedules.Count.ToString();

            routineLabel.Text += " ";
            routineLabel.Text += firstValue.ToString();
            this.storeComponents();
            this.viewResults();
        }
コード例 #2
0
        public scheduleResults(int firstValue, scheduleResults pp, showCourseList lst, string uname)
        {
            InitializeComponent();
            routineLabel.Text += " " + firstValue.ToString();
            pageShow.Text      = "Page: " + firstValue.ToString() + "\n" + "Total produced: " + prepareSchedule.combinationalSchedules.Count.ToString();
            this.username      = uname;
            pageValue          = firstValue;
            prev     = pp;
            showList = lst;
            const int len = 793;

            int[] arrSize  = new int[] { 87, 53, 142, 260, 372, 490, 610 };
            int   introPnl = arrSize[0];

            noOfCourse = prepareSchedule.combinationalSchedules[0].courses.Count;
            int showPnl = arrSize[noOfCourse + 1];
            int fnlPnl  = arrSize[1];

            this.Size            = new Size(len, introPnl + showPnl + fnlPnl);
            introductoryPnl.Size = new Size(len, introPnl);
            resultShowPnl.Size   = new Size(len, showPnl);
            finalPnl.Size        = new Size(len, fnlPnl);
            this.storeComponents();
            showResults();

            if (pageValue == prepareSchedule.combinationalSchedules.Count)
            {
                nxtBtn.Visible = false;
            }
        }
コード例 #3
0
        public showCourseList(string uname, int initializar, showOption so, showCourseList cl)
        {
            InitializeComponent();
            username = uname;
            initNum  = initializar;
            storeComponents();

            showOpt = so;
            showCL  = cl;

            string   query = "select * from courses";
            DataRow  row;
            database db = new database();

            dt = db.Table(query);
            setCoursesAndNumbers(dt, initNum);
            setCheckBox();
            refreshSelections();
        }