Exemplo n.º 1
0
            public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType)
            {
                if (destType == typeof(string) && value is PointHelper)
                {
                    // Cast the value to an Employee type
                    PointHelper pp = (PointHelper)value;

                    return(pp.Channelname + ", " + pp.Pointvalue);
                }
                return(base.ConvertTo(context, culture, value, destType));
            }
Exemplo n.º 2
0
 public bool Contains(PointHelper value)
 {
     // If value is not of type Int16, this will return false.
     return(List.Contains(value));
 }
Exemplo n.º 3
0
 public void Remove(PointHelper value)
 {
     List.Remove(value);
 }
Exemplo n.º 4
0
 public void Insert(int index, PointHelper value)
 {
     List.Insert(index, value);
 }
Exemplo n.º 5
0
 public int IndexOf(PointHelper value)
 {
     return(List.IndexOf(value));
 }
Exemplo n.º 6
0
 public int Add(PointHelper value)
 {
     return(List.Add(value));
 }