예제 #1
0
 public void Agregar(ExtractorValor extractor)
 {
     if (!contieneExtractor(extractor))
     {
         this.extractores.Add(extractor);
         int cuenta = this.extractores.Count;
         if (cuenta > 1)
         {
             this.extractores[(cuenta - 2)].Sucesor = this.extractores[(cuenta - 1)];
         }
     }
 }
예제 #2
0
        bool contieneExtractor(ExtractorValor extractor)
        {
            bool contiene = false;

            foreach (ExtractorValor E in this.extractores)
            {
                if (E.GetType() == extractor.GetType())
                {
                    contiene = true;
                    break;
                }
            }
            return(contiene);
        }
예제 #3
0
        public static ExtractorValor Crear(Control control)
        {
            ExtractorValor extractor = null;

            if (control is System.Windows.Forms.TextBoxBase)
            {
                extractor = new ExtractorTextBoxBase();
            }
            else if (control is System.Windows.Forms.CheckBox)
            {
                extractor = new ExtractorCheckBox();
            }
            else if (control is System.Windows.Forms.DateTimePicker)
            {
                extractor = new ExtractorDateTimePicker();
            }
            else if (control is System.Windows.Forms.NumericUpDown)
            {
                extractor = new ExtractorNumericUpDown();
            }
            else if (control is System.Windows.Forms.ComboBox)
            {
                extractor = new ExtractorComboBox();
            }
            else if (control is System.Windows.Forms.ListBox)
            {
                extractor = new ExtractorListBox();
            }
            else if (control is System.Windows.Forms.ListView)
            {
                extractor = new ExtractorListView();
            }
            else if (control is System.Windows.Forms.TreeView)
            {
                extractor = new ExtractorTreeView();
            }
            return(extractor);
        }
예제 #4
0
 internal ExtractorValor()
 {
     this.sucesor       = null;
     this.infoPropiedad = null;
     this.tipoPropiedad = string.Empty;
 }