public CourseDisplay(CourseSchedule _CourseSchedule, int day, int startL, int numL) { this.Background = Brushes.White; InitializeComponent(); double stdH = this.Height; this.CourseName.Text = _CourseSchedule.Name; this.CourseID.Text = _CourseSchedule.ID; this.Teacher.Text = _CourseSchedule.Teacher; this.Room.Text = _CourseSchedule.Room; this.EndDate.Text = _CourseSchedule.EndD; this.StartDate.Text = _CourseSchedule.StartD; this.Height = stdH * numL; // float t = Grid.GetColumn(this).Equals.Width Grid.SetRow(this, startL); Grid.SetColumn(this, day - 2); Grid.SetRowSpan(this, numL); }
public void AddSub(Class.CourseSchedule Info, int Day, int StartCalss, int Class) { Container.Children.Add(new Class.CourseDisplay(Info, Day, StartCalss, Class)); }