Exemplo n.º 1
0
 private String buildDayReport(ClassGroupBox classGroupBox)
 {
     String report = classGroupBox.getCourseName() + " \n"
         + classGroupBox.getStartHour() + ":"  + classGroupBox.getStartMin() + " - " + classGroupBox.getEndHour()
         + ":" + classGroupBox.getEndMin() + "\n" + buildDayString(classGroupBox.getDays())
         + "\n-----------------------\n\n";
     return report;
 }
Exemplo n.º 2
0
        private void redrawBtn_Click(object sender, EventArgs e)
        {
            int[][] classData = { };
            if (noClassTxt.Text == "")
            {
                MessageBox.Show("Please enter a number of classes");
            }
            else
            {
                noOfClass = int.Parse(noClassTxt.Text);

                myClassPanel.Controls.Clear();
                groupBoxList.Clear();

                // TODO: save/store values when adding a class
                for (int i = 0; i < noOfClass; i++)
                {
                    ClassGroupBox tempBox = new ClassGroupBox();
                    groupBoxList.Add(tempBox);
                    myClassPanel.Controls.Add(groupBoxList[i]);
                }

                myClassPanel.Refresh();
            }
        }
Exemplo n.º 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            startOfSemester = new DateTime(DateTime.Now.Year, DateTime.Now.Month,
                    DateTime.Now.Day, 0, 0, 0);
            endOfSemester = new DateTime(DateTime.Now.Year, DateTime.Now.Month,
                    DateTime.Now.Day, 0, 0, 0);

            ClassGroupBox classOne = new ClassGroupBox();
            groupBoxList.Add(classOne);
            myClassPanel.Controls.Add(groupBoxList[0]);
        }