Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundButton != null)
            {
                BackgroundButton.Dispose();
                BackgroundButton = null;
            }

            if (BackgroundView != null)
            {
                BackgroundView.Dispose();
                BackgroundView = null;
            }

            if (ButtonView != null)
            {
                ButtonView.Dispose();
                ButtonView = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (FileNameText != null)
            {
                FileNameText.Dispose();
                FileNameText = null;
            }

            if (FileTableView != null)
            {
                FileTableView.Dispose();
                FileTableView = null;
            }

            if (OKButton != null)
            {
                OKButton.Dispose();
                OKButton = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }

            if (TitleView != null)
            {
                TitleView.Dispose();
                TitleView = null;
            }
        }
Ejemplo n.º 2
0
        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();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         var f1 = new MyFile {
             fileid = 1, filename = "File 1"
         };
         var f2 = new MyFile {
             fileid = 2, filename = "File 2"
         };
         var files = new List <MyFile> {
             f1, f2
         };
         FileTableView.DataSource = files;
         FileTableView.DataBind();
     }
 }
Ejemplo n.º 4
0
        partial void ListSelectionViewChanged(UISegmentedControl sender)
        {
            selectedList = (int)ListSelectionView.SelectedSegment;

            FileTableView.ReloadData();
        }
Ejemplo n.º 5
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundButton != null)
            {
                BackgroundButton.Dispose();
                BackgroundButton = null;
            }

            if (BackgroundView != null)
            {
                BackgroundView.Dispose();
                BackgroundView = null;
            }

            if (ButtonView != null)
            {
                ButtonView.Dispose();
                ButtonView = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (FileTableView != null)
            {
                FileTableView.Dispose();
                FileTableView = null;
            }

            if (ListSelectionView != null)
            {
                ListSelectionView.Dispose();
                ListSelectionView = null;
            }

            if (OKButton != null)
            {
                OKButton.Dispose();
                OKButton = null;
            }

            if (SelectAllButton != null)
            {
                SelectAllButton.Dispose();
                SelectAllButton = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }

            if (TitleView != null)
            {
                TitleView.Dispose();
                TitleView = null;
            }
        }
Ejemplo n.º 6
0
 public FileTableDelegate(FileTableView controller, FileItemTableDataSource datasource)
 {
     this.Controller = controller;
     this.DataSource = datasource;
 }