public override void ViewDidLoad() { if (_myBookings) { Title = "Mine bestillinger"; } else { CultureInfo no = new CultureInfo("nn-NO"); string dayName = _scheduleDate.ToString("dddd", no); Title = dayName.Substring(0, 1).ToUpper() + dayName.Substring(1, dayName.Length - 1); } View.BackgroundColor = UIColor.Black; scheduleTableViewController = new ScheduleTableViewController(this.NavigationController, _scheduleDate, _myBookings); scheduleTableViewController.View.BackgroundColor = UIColor.Black; scheduleTableViewController.View.Frame = new RectangleF(0, 0, View.Frame.Width, View.Frame.Height - 45); activityIndicator = new UIActivityIndicatorView(); activityIndicator.ActivityIndicatorViewStyle = UIActivityIndicatorViewStyle.White; activityIndicator.Frame = new RectangleF(0, 0, 40, 40); activityIndicator.Center = new PointF(View.Frame.Width / 2, View.Frame.Height / 3); activityIndicator.BackgroundColor = UIColor.Black; }
public override void ViewDidLoad() { if ( _myBookings ) { Title = "Mine bestillinger"; } else { CultureInfo no = new CultureInfo("nn-NO"); string dayName = _scheduleDate.ToString("dddd",no); Title = dayName.Substring(0,1).ToUpper() + dayName.Substring(1,dayName.Length-1); } View.BackgroundColor = UIColor.Black; scheduleTableViewController = new ScheduleTableViewController( this.NavigationController, _scheduleDate , _myBookings ); scheduleTableViewController.View.BackgroundColor = UIColor.Black; scheduleTableViewController.View.Frame = new RectangleF( 0, 0, View.Frame.Width, View.Frame.Height-45 ); activityIndicator = new UIActivityIndicatorView(); activityIndicator.ActivityIndicatorViewStyle = UIActivityIndicatorViewStyle.White; activityIndicator.Frame = new RectangleF( 0,0,40,40); activityIndicator.Center = new PointF( View.Frame.Width/2,View.Frame.Height/3); activityIndicator.BackgroundColor = UIColor.Black; }