private void Window_Loaded(object sender, RoutedEventArgs e) { //string test = pc == null ? "Null" : "Not Null"; //MessageBox.Show(test); pc = RideController.getInstance(); refreshTable(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { rc = RideController.getInstance(); id.Content = r.ActivityID + ""; status.Text = r.Status; type.Content = r.ActivityType; nameBox.Text = r.ActivityName; durationBox.Text = r.ActivityDuration + ""; descriptionBox.Text = r.ActivityDescription; heightBox.Text = r.MinHeight + ""; AgeBox.Text = r.MinAge + ""; RestrictionBox.Text = r.Restriction; }
private void Window_Loaded(object sender, RoutedEventArgs e) { rc = RideController.getInstance(); id.Content = (rc.getLastIndex() + 1) + ""; }