private void RemoveFootprints()
        {
            Strip strip = this.parent;

            foreach (Asset asset in strip.assets)
            {
                asset.disposeFootprint();
            }
        }
        public void determineParentPermissions()
        {
            bool  permitted   = _permissions.Count() > 0;
            Strip parentStrip = parent;

            parentStrip.HasPermissions = permitted;
            Item parentItem = parentStrip.parent;

            parentItem.HasPermissions = permitted;
            AcquiredDateGroup parentDateGroup = parentItem.parent;

            parentDateGroup.HasPermissions = permitted;
        }
Пример #3
0
 private void doSelectAll()
 {
     IsChecked = true;
     if (mapLayerName != null)
     {
         for (int i = strips.Count - 1; i >= 0; i--)
         {
             Strip strip = strips[i];
             if (strip.IsChecked != true)
             {
                 if (strip.mapLayerName != null)
                 {
                     strip.IsChecked = true;
                     List <Asset> assets = strip.assets;
                     for (int j = assets.Count - 1; j >= 0; j--)
                     {
                         Asset asset = assets[j];
                         asset.IsChecked = true;
                     }
                 }
                 else
                 {
                     strip.IsChecked = true;
                 }
             }
             else
             {
                 List <Asset> assets = strip.assets;
                 for (int j = assets.Count - 1; j >= 0; j--)
                 {
                     Asset asset = assets[j];
                     asset.IsChecked = true;
                 }
             }
         }
     }
 }
Пример #4
0
        protected bool SetIsChecked <T>(ref T field, T value, [CallerMemberName] string propertyName = null)
        {
            if (EqualityComparer <T> .Default.Equals(field, value))
            {
                return(false);
            }
            field = value;
            bool isChecked = Convert.ToBoolean(value);

            if (mapLayerName != null)
            {
                toggleOnMap(isChecked);
            }
            else
            {
                for (int i = strips.Count - 1; i >= 0; i--)
                {
                    Strip strip = strips[i];
                    strip.IsChecked = isChecked;
                }
            }
            OnPropertyChanged(propertyName);
            return(true);
        }