void ReleaseDesignerOutlets() { if (DateOneButton != null) { DateOneButton.Dispose(); DateOneButton = null; } if (DateTwoButton != null) { DateTwoButton.Dispose(); DateTwoButton = null; } if (lblPeriodo != null) { lblPeriodo.Dispose(); lblPeriodo = null; } if (PeriodHeigthCL != null) { PeriodHeigthCL.Dispose(); PeriodHeigthCL = null; } if (PeriodTebleView != null) { PeriodTebleView.Dispose(); PeriodTebleView = null; } if (PeriodView != null) { PeriodView.Dispose(); PeriodView = null; } if (TypeHeightCL != null) { TypeHeightCL.Dispose(); TypeHeightCL = null; } if (TypeTableView != null) { TypeTableView.Dispose(); TypeTableView = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); HandleButtons(); DrawingViews(); var tipo = new List <string>() { "Generada", "Atendida", "Facturación en proceso", "Facturada" }; var periodo = new List <string>() { "Últimos 10 días", "Mes anterior", "Personalizado" }; TypeTableViewSource tipos = new TypeTableViewSource(tipo, this); TypeTableView.Source = tipos; PeriodTableViewSource periodos = new PeriodTableViewSource(periodo, this); PeriodTebleView.Source = periodos; TypeTableView.ReloadData(); TypeTableView.Layer.CornerRadius = 5; TypeTableView.TableFooterView = new UIView(); TypeHeightCL.Constant = TypeTableView.ContentSize.Height - 25; PeriodTebleView.ReloadData(); PeriodTebleView.Layer.CornerRadius = 5; PeriodTebleView.TableFooterView = new UIView(); PeriodHeigthCL.Constant = PeriodTebleView.ContentSize.Height - 25; PeriodView.Layer.CornerRadius = 5; this.NavigationItem.RightBarButtonItem = new UIBarButtonItem(title: "Limpiar", style: UIBarButtonItemStyle.Plain, target: this, action: new Selector("ClearFilters:")); }