void ReleaseDesignerOutlets()
        {
            if (ImageViewMediaPhoto != null)
            {
                ImageViewMediaPhoto.Dispose();
                ImageViewMediaPhoto = null;
            }

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

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

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

            if (LabelNew != null)
            {
                LabelNew.Dispose();
                LabelNew = null;
            }
        }
Example #2
0
        /// <summary>
        /// Label
        /// </summary>
        /// <returns></returns>
        public static IGroupContainer <T, LabelDescription> Label <T>(this IGroupContainer <T> root, String displayName, Expression <PropertyGetter <T> > text, String stringFormat = null)
        {
            var item = new LabelDescription(
                displayName,
                PropertyPath.GetPropertyPath(text),
                stringFormat);


            return(root.AddDescription(item));
        }
        void ReleaseDesignerOutlets()
        {
            if (LabelDescription != null)
            {
                LabelDescription.Dispose();
                LabelDescription = null;
            }

            if (LabelNew != null)
            {
                LabelNew.Dispose();
                LabelNew = null;
            }
        }
Example #4
0
        static public string FormatLabel(this LabelDescription label)
        {
            switch (label)
            {
            case LabelDescription.Alpha: return("alpha");

            case LabelDescription.Beta: return("beta");

            case LabelDescription.PreAlpha: return("pre-alpha");

            case LabelDescription.PreRelease: return("pre-release");

            default: return("");
            }
        }
Example #5
0
 void ReleaseDesignerOutlets()
 {
     if (DetailPagePropertyView != null)
     {
         DetailPagePropertyView.Dispose();
         DetailPagePropertyView = null;
     }
     if (LabelDescription != null)
     {
         LabelDescription.Dispose();
         LabelDescription = null;
     }
     if (LabelTitle != null)
     {
         LabelTitle.Dispose();
         LabelTitle = null;
     }
 }
Example #6
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonGetCurrentWeather != null)
            {
                ButtonGetCurrentWeather.Dispose();
                ButtonGetCurrentWeather = null;
            }

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

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

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

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

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

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