public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value == null)
            {
                throw base.GetConvertFromException(value);
            }

            string source = value as string;

            if (source == null)
            {
                return(base.ConvertFrom(context, culture, value));
            }

            return(IntGrid2Z.Parse(source));
        }
Beispiel #2
0
 public void Add(IntGrid2Z rect)
 {
     Add(new IntGrid3(rect));
 }
Beispiel #3
0
 public IntGrid3(IntGrid2Z rect)
     : this(rect.X, rect.Y, rect.Z, rect.Columns, rect.Rows, 1)
 {
 }