Esempio n. 1
0
        private void Update(UTI uti)
        {
            var description = uti.ToString();

            if (!string.IsNullOrEmpty(description))
            {
                TypeLabel.Text = description;
            }
            else
            {
                TypeLabel.Text = UIKitExtensions.Localize("Finder.UnknownFileType");
            }

            if (Images.FromUTI(uti) is UIImage image)
            {
                IconImage.Image = image;
            }
            else
            {
                IconImage.Image = UIImage.FromBundle("UnknownFile");
            }
        }