Ejemplo n.º 1
0
        void IFeatureSource.RemoveExtension(IFeatureSourceExtension ext)
        {
            var e = ext as FeatureSourceTypeExtension;

            if (e != null)
            {
                this.Extension.Remove(e);
            }
        }
Ejemplo n.º 2
0
        public ExtendedClassSettings(IFeatureSource fs, IEnumerable<string> qualifiedClassNames, IFeatureSourceExtension ext)
            : this()
        {
            _fs = fs;
            _ext = ext;
            var names = new List<string>(qualifiedClassNames);
            cmbBaseClass.DataSource = names;
            ext.PropertyChanged += (sender, e) => { OnResourceChanged(); };

            //HACK
            if (string.IsNullOrEmpty(_ext.FeatureClass))
                _ext.FeatureClass = names[0];

            ComboBoxBinder.BindSelectedIndexChanged(cmbBaseClass, "SelectedItem", ext, "FeatureClass"); //NOXLATE
        }
Ejemplo n.º 3
0
        public ExtendedClassSettings(IFeatureSource fs, IEnumerable <string> qualifiedClassNames, IFeatureSourceExtension ext)
            : this()
        {
            _fs  = fs;
            _ext = ext;
            var names = new List <string>(qualifiedClassNames);

            cmbBaseClass.DataSource = names;
            ext.PropertyChanged    += WeakEventHandler.Wrap <PropertyChangedEventHandler>(OnExtensionPropertyChanged, (eh) => ext.PropertyChanged -= eh);

            //HACK
            if (string.IsNullOrEmpty(_ext.FeatureClass))
            {
                _ext.FeatureClass = names[0];
            }

            ComboBoxBinder.BindSelectedIndexChanged(cmbBaseClass, nameof(cmbBaseClass.SelectedItem), ext, nameof(ext.FeatureClass));
        }
Ejemplo n.º 4
0
 private bool IsValidExtension(IFeatureSourceExtension ext)
 {
     //TODO: Check class name and extended class name for validity
     return !string.IsNullOrEmpty(ext.FeatureClass) && !string.IsNullOrEmpty(ext.Name);
 }
Ejemplo n.º 5
0
 void IFeatureSource.RemoveExtension(IFeatureSourceExtension ext)
 {
     var e = ext as FeatureSourceTypeExtension;
     if (e != null)
     {
         this.Extension.Remove(e);
     }
 }
Ejemplo n.º 6
0
 private bool IsValidExtension(IFeatureSourceExtension ext)
 {
     //TODO: Check class name and extended class name for validity
     return(!string.IsNullOrEmpty(ext.FeatureClass) && !string.IsNullOrEmpty(ext.Name));
 }