public DiplomaControlPage()
        {
            InitializeComponent();
            ControlDeadlines = new List<DateTime>();
            ControlDeadlines.Add(new DateTime(2015, 5, 28));
            ControlDeadlines.Add(new DateTime(2015, 5, 29));
            ControlDeadlines.Add(new DateTime(2015, 5, 30));
            PreDefenseDeadline = new DateTime(2015, 5, 31);

            // PracticeGrid
            DataGridTextColumn col = new DataGridTextColumn();
            col.Header = "Номер заліковки";
            col.Width = new DataGridLength(110);
            col.Binding = new Binding("RecordBookNumber");
            PracticeGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "ПІБ";
            col.Width = new DataGridLength(240);
            col.Binding = new Binding("FullName");
            PracticeGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Група";
            col.Width = new DataGridLength(70);
            col.Binding = new Binding("Group");
            PracticeGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Звіт";
            col.Width = new DataGridLength(40);
            col.Binding = new Binding("PracticeReport");
            PracticeGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "ECTS";
            col.Width = new DataGridLength(40);
            col.Binding = new Binding("PracticeECTS");
            PracticeGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Бали";
            col.Width = new DataGridLength(40);
            col.Binding = new Binding("PracticePoints");
            PracticeGrid.Columns.Add(col);

            // ProjectingGrid
            col = new DataGridTextColumn();
            col.Header = "Номер заліковки";
            col.Width = new DataGridLength(110);
            col.Binding = new Binding("RecordBookNumber");
            ProjectingGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "ПІБ";
            col.Width = new DataGridLength(240);
            col.Binding = new Binding("FullName");
            ProjectingGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Група";
            col.Width = new DataGridLength(70);
            col.Binding = new Binding("Group");
            ProjectingGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Заява";
            col.Width = new DataGridLength(45);
            col.Binding = new Binding("Application");
            ProjectingGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "ПЗ";
            col.Width = new DataGridLength(30);
            col.Binding = new Binding("PZ");
            ProjectingGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Відгук";
            col.Width = new DataGridLength(45);
            col.Binding = new Binding("Response");
            ProjectingGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Рецензент";
            col.Width = new DataGridLength(240);
            col.Binding = new Binding("Reviewer");
            ProjectingGrid.Columns.Add(col);
            col = new DataGridTextColumn();
            col.Header = "Рецензія";
            col.Width = new DataGridLength(60);
            col.Binding = new Binding("Review");
            ProjectingGrid.Columns.Add(col);

            Diploma = new DiplomaRow("IS-3204", "Lol Lol Lol", "IS-32", "90", "1.06.2015", "10", "30", "50", "", "", "+", "E", "60", "+", "-", "-", "Lohovskiy Loh Lohovich", "+");
            PracticeGrid.Items.Add(Diploma);
            ProjectingGrid.Items.Add(Diploma);
            
        }
示例#2
0
        public DiplomaControlPage()
        {
            InitializeComponent();
            ControlDeadlines = new List <DateTime>();
            ControlDeadlines.Add(new DateTime(2015, 5, 28));
            ControlDeadlines.Add(new DateTime(2015, 5, 29));
            ControlDeadlines.Add(new DateTime(2015, 5, 30));
            PreDefenseDeadline = new DateTime(2015, 5, 31);

            // PracticeGrid
            DataGridTextColumn col = new DataGridTextColumn();

            col.Header  = "Номер заліковки";
            col.Width   = new DataGridLength(110);
            col.Binding = new Binding("RecordBookNumber");
            PracticeGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "ПІБ";
            col.Width   = new DataGridLength(240);
            col.Binding = new Binding("FullName");
            PracticeGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Група";
            col.Width   = new DataGridLength(70);
            col.Binding = new Binding("Group");
            PracticeGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Звіт";
            col.Width   = new DataGridLength(40);
            col.Binding = new Binding("PracticeReport");
            PracticeGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "ECTS";
            col.Width   = new DataGridLength(40);
            col.Binding = new Binding("PracticeECTS");
            PracticeGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Бали";
            col.Width   = new DataGridLength(40);
            col.Binding = new Binding("PracticePoints");
            PracticeGrid.Columns.Add(col);

            // ProjectingGrid
            col         = new DataGridTextColumn();
            col.Header  = "Номер заліковки";
            col.Width   = new DataGridLength(110);
            col.Binding = new Binding("RecordBookNumber");
            ProjectingGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "ПІБ";
            col.Width   = new DataGridLength(240);
            col.Binding = new Binding("FullName");
            ProjectingGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Група";
            col.Width   = new DataGridLength(70);
            col.Binding = new Binding("Group");
            ProjectingGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Заява";
            col.Width   = new DataGridLength(45);
            col.Binding = new Binding("Application");
            ProjectingGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "ПЗ";
            col.Width   = new DataGridLength(30);
            col.Binding = new Binding("PZ");
            ProjectingGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Відгук";
            col.Width   = new DataGridLength(45);
            col.Binding = new Binding("Response");
            ProjectingGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Рецензент";
            col.Width   = new DataGridLength(240);
            col.Binding = new Binding("Reviewer");
            ProjectingGrid.Columns.Add(col);
            col         = new DataGridTextColumn();
            col.Header  = "Рецензія";
            col.Width   = new DataGridLength(60);
            col.Binding = new Binding("Review");
            ProjectingGrid.Columns.Add(col);

            Diploma = new DiplomaRow("IS-3204", "Lol Lol Lol", "IS-32", "90", "1.06.2015", "10", "30", "50", "", "", "+", "E", "60", "+", "-", "-", "Lohovskiy Loh Lohovich", "+");
            PracticeGrid.Items.Add(Diploma);
            ProjectingGrid.Items.Add(Diploma);
        }