예제 #1
0
        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));
        }
예제 #2
0
 public void Add(IntGrid2Z rect)
 {
     Add(new IntGrid3(rect));
 }
예제 #3
0
 public IntGrid3(IntGrid2Z rect)
     : this(rect.X, rect.Y, rect.Z, rect.Columns, rect.Rows, 1)
 {
 }