Exemple #1
0
        private void dimensione()
        {
            if (string.IsNullOrWhiteSpace(Width))
            {
                return;
            }
            if (Width.Contains("px"))
            {
                stile += "flex-basis: " + Width + ";";
                return;
            }
            if (Width.Contains("%"))
            {
                stile += "flex: " + Width + ";";
                return;
            }
            int num = 0;

            try
            {
                num = Convert.ToInt32(Width);
            }
            catch (System.Exception)
            {
                throw;
            }
            stile += "flex: " + Width.ToString() + ";";
        }