private void InitializeStandardTypes() {
     this.Register(typeof(Boolean), typeof(BooleanCellEditor));
     this.Register(typeof(Int16), typeof(IntUpDown));
     this.Register(typeof(Int32), typeof(IntUpDown));
     this.Register(typeof(Int64), typeof(IntUpDown));
     this.Register(typeof(UInt16), typeof(UintUpDown));
     this.Register(typeof(UInt32), typeof(UintUpDown));
     this.Register(typeof(UInt64), typeof(UintUpDown));
     this.Register(typeof(Single), typeof(FloatCellEditor));
     this.Register(typeof(Double), typeof(FloatCellEditor));
     this.Register(typeof(DateTime), delegate(Object model, OLVColumn column, Object value) {
         DateTimePicker c = new DateTimePicker();
         c.Format = DateTimePickerFormat.Short;
         return c;
     });
     this.Register(typeof(Boolean), delegate(Object model, OLVColumn column, Object value) {
         CheckBox c = new BooleanCellEditor2();
         c.ThreeState = column.TriStateCheckBoxes;
         return c;
     });
 }
 private void InitializeStandardTypes() {
     this.Register(typeof(Boolean), typeof(BooleanCellEditor));
     this.Register(typeof(Int16), typeof(IntUpDown));
     this.Register(typeof(Int32), typeof(IntUpDown));
     this.Register(typeof(Int64), typeof(IntUpDown));
     this.Register(typeof(UInt16), typeof(UintUpDown));
     this.Register(typeof(UInt32), typeof(UintUpDown));
     this.Register(typeof(UInt64), typeof(UintUpDown));
     this.Register(typeof(Single), typeof(FloatCellEditor));
     this.Register(typeof(Double), typeof(FloatCellEditor));
     this.Register(typeof(DateTime), delegate(Object model, OLVColumn column, Object value) {
         DateTimePicker c = new DateTimePicker();
         c.Format = DateTimePickerFormat.Short;
         return c;
     });
     this.Register(typeof(Boolean), delegate(Object model, OLVColumn column, Object value) {
         CheckBox c = new BooleanCellEditor2();
         c.ThreeState = column.TriStateCheckBoxes;
         return c;
     });
 }
 private void InitializeStandardTypes()
 {
     this.Register(typeof(bool), typeof(BooleanCellEditor));
     this.Register(typeof(short), typeof(IntUpDown));
     this.Register(typeof(int), typeof(IntUpDown));
     this.Register(typeof(long), typeof(IntUpDown));
     this.Register(typeof(ushort), typeof(UintUpDown));
     this.Register(typeof(uint), typeof(UintUpDown));
     this.Register(typeof(ulong), typeof(UintUpDown));
     this.Register(typeof(float), typeof(FloatCellEditor));
     this.Register(typeof(double), typeof(FloatCellEditor));
     this.Register(typeof(DateTime), delegate(object model, OLVColumn column, object value)
     {
         DateTimePicker c = new DateTimePicker();
         c.Format         = DateTimePickerFormat.Short;
         return(c);
     });
     this.Register(typeof(bool), delegate(object model, OLVColumn column, object value)
     {
         CheckBox c   = new BooleanCellEditor2();
         c.ThreeState = column.TriStateCheckBoxes;
         return(c);
     });
 }