public CourseInfo(string ID, string User) { InitializeComponent(); this.ID = ID; this.User = User; this.NameLabel.Text = "Welcome " + User; SemesterRepository sr = new SemesterRepository(); this.SemesterComboBox.DataSource = sr.GetAllSemesterName(); }
public ShowRegistration(string ID, string User) { InitializeComponent(); this.ID = ID; this.User = User; this.NameLabel.Text = "Welcome " + User; SemesterRepository sr = new SemesterRepository(); this.SemesterComboBox.DataSource = sr.GetAllSemesterName(); this.RegistrationLabel.Text = "Name: " + User.ToString() + "\nID: " + ID.ToString() + "\n\n"; }
public ShowCourseResults(string ID, string User, bool b) { InitializeComponent(); this.b = b; this.ID = ID; this.NameLabel.Visible = b; this.User = User; this.NameLabel.Text = "Welcome " + User; SemesterRepository sr = new SemesterRepository(); this.SemesterComboBox.DataSource = sr.GetAllSemesterName(); }