void ReleaseDesignerOutlets() { if (TopConstraint != null) { TopConstraint.Dispose(); TopConstraint = null; } if (ChooseIconButton != null) { ChooseIconButton.Dispose(); ChooseIconButton = null; } if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (IconNameLabel != null) { IconNameLabel.Dispose(); IconNameLabel = null; } if (TextField != null) { TextField.Dispose(); TextField = null; } }
protected override void SetupLayoutConstraints() { base.SetupLayoutConstraints(); this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); this.AddConstraints( IconImageView.AtLeadingOf(this, 13), IconImageView.WithSameCenterY(this), IconImageView.Width().EqualTo(36), IconImageView.Height().EqualTo(36), RangeLabel.ToTrailingOf(IconImageView, 16), RangeLabel.AtTopOf(this, 16), TypeLabel.AtLeadingOf(RangeLabel), TypeLabel.Below(RangeLabel), ArrowImageView.WithSameCenterY(this), ArrowImageView.AtTrailingOf(this, 12), ArrowImageView.Width().EqualTo(8), ArrowImageView.Height().EqualTo(13), StateLabel.ToLeadingOf(ArrowImageView, 6), StateLabel.WithSameCenterY(this), MainDeviderView.Height().EqualTo(Theme.Dimensions.DeviderWidth), MainDeviderView.AtBottomOf(this), MainDeviderView.AtTrailingOf(this), MainDeviderView.WithSameLeading(RangeLabel), LastItemDeviderView.WithSameHeight(MainDeviderView), LastItemDeviderView.AtBottomOf(this), LastItemDeviderView.AtLeadingOf(this), LastItemDeviderView.ToLeadingOf(MainDeviderView)); }
void ReleaseDesignerOutlets() { if (HeightRemoveConstraint != null) { HeightRemoveConstraint.Dispose(); HeightRemoveConstraint = null; } if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (NameFileLabel != null) { NameFileLabel.Dispose(); NameFileLabel = null; } if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } }
protected override void Rebind() { if (DataSource == null) { return; } IconImageView.SetImageResource(DataSource.ImageResId); TitleTextView.SetText(DataSource.TextResId); TitleTextView.Enabled = DataSource.IsEnabled; }
void ReleaseDesignerOutlets() { if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }
void ReleaseDesignerOutlets() { if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (ShortTextLabel != null) { ShortTextLabel.Dispose(); ShortTextLabel = null; } }
void ReleaseDesignerOutlets() { if (CustomerIdLabel != null) { CustomerIdLabel.Dispose(); CustomerIdLabel = null; } if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } }
void ReleaseDesignerOutlets() { if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (SearchButton != null) { SearchButton.Dispose(); SearchButton = null; } if (SearchTextField != null) { SearchTextField.Dispose(); SearchTextField = null; } }
void ReleaseDesignerOutlets() { if (HourLabel != null) { HourLabel.Dispose(); HourLabel = null; } if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (TemperatureLabel != null) { TemperatureLabel.Dispose(); TemperatureLabel = null; } }
void ReleaseDesignerOutlets() { if (DiscountLabel != null) { DiscountLabel.Dispose(); DiscountLabel = null; } if (IconImageView != null) { IconImageView.Dispose(); IconImageView = null; } if (PriceLabel != null) { PriceLabel.Dispose(); PriceLabel = null; } if (ProductIdLabel != null) { ProductIdLabel.Dispose(); ProductIdLabel = null; } if (QuantityLabel != null) { QuantityLabel.Dispose(); QuantityLabel = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (TotalPriceLabel != null) { TotalPriceLabel.Dispose(); TotalPriceLabel = null; } }
public void Update(string hour, NSUrl iconUrl, string temperature) { HourLabel.Text = hour; IconImageView.SetImage(iconUrl); TemperatureLabel.Text = temperature; }
/// <summary> /// This method will update the TextView and the ImageView with the filename and the file/folder icon /// </summary> /// <param name="fileName">Name of the file.</param> /// <param name="fileImageResourceId">The file image resource identifier.</param> public void Update(string fileName, int fileImageResourceId) { NameTextView.Text = fileName; IconImageView.SetImageResource(fileImageResourceId); }