public override void ViewDidLoad() { base.ViewDidLoad(); if (View.Bounds.Height > View.Bounds.Width) { View.SetSize((float)View.Bounds.Height, (float)View.Bounds.Width); } ButtonView.CornerRadius = 0; ButtonView.Border = 0; ButtonView.Gradient = new GradientHelper(0x0.UIColor()); ButtonView.BackgroundColor = UIColor.Clear; TitleView.CornerRadius = 0; TitleView.Border = 0; TitleView.Gradient = new GradientHelper(0x0.UIColor()); TitleView.BackgroundColor = UIColor.Clear; if (!importMode) { TitleLabel.Text = "Select Items to Export"; } CMStyles.StyleBasicPanel(BackgroundView); OKButton.StyleStandardButton(); CancelButton.StyleStandardButton(); BackgroundButton.TouchUpInside += (sender, e) => { this.View.RemoveFromSuperview(); }; SelectAllButton.TouchUpInside += (sender, e) => { foreach (ChecklistItem item in lists[selectedList]) { item.IsChecked = true; } FileTableView.ReloadData(); }; FileTableView.Delegate = viewDelegate; FileTableView.DataSource = viewDataSource; _SelectedIndex = -1; UpdateOK(); }
partial void ListSelectionViewChanged(UISegmentedControl sender) { selectedList = (int)ListSelectionView.SelectedSegment; FileTableView.ReloadData(); }