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

                    return(pp.Symbol + ", " + pp.Numberofmeasurements.ToString());
                }
                return(base.ConvertTo(context, culture, value, destType));
            }
예제 #2
0
 public bool Contains(GraphLine value)
 {
     // If value is not of type Int16, this will return false.
     return(List.Contains(value));
 }
예제 #3
0
 public void Remove(GraphLine value)
 {
     List.Remove(value);
 }
예제 #4
0
 public void Insert(int index, GraphLine value)
 {
     List.Insert(index, value);
 }
예제 #5
0
 public int IndexOf(GraphLine value)
 {
     return(List.IndexOf(value));
 }
예제 #6
0
 public int Add(GraphLine value)
 {
     return(List.Add(value));
 }