public GaugeImage Add(string name) { GaugeImage gaugeImage = new GaugeImage(); gaugeImage.Name = name; Add(gaugeImage); return(gaugeImage); }
public override object Clone() { MemoryStream stream = new MemoryStream(); BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer(); binaryFormatSerializer.Serialize(this, stream); GaugeImage gaugeImage = new GaugeImage(); binaryFormatSerializer.Deserialize(gaugeImage, stream); return(gaugeImage); }
protected override void OnInsertComplete(int index, object value) { base.OnInsertComplete(index, value); GaugeImage gaugeImage = (GaugeImage)value; if (gaugeImage.Position.DefaultValues && index != 0) { GaugeImage gaugeImage2 = this[index - 1]; gaugeImage.Location.X = gaugeImage2.Location.X + 3f; gaugeImage.Location.Y = gaugeImage2.Location.Y + 3f; } if (gaugeImage.DefaultParent && gaugeImage.Parent.Length == 0 && base.Common != null) { if (base.Common.GaugeContainer.CircularGauges.Count > 0) { gaugeImage.Parent = "CircularGauges." + base.Common.GaugeContainer.CircularGauges[0].Name; } else if (base.Common.GaugeContainer.LinearGauges.Count > 0) { gaugeImage.Parent = "LinearGauges." + base.Common.GaugeContainer.LinearGauges[0].Name; } } }
public int IndexOf(GaugeImage value) { return(base.List.IndexOf(value)); }
public void Insert(int index, GaugeImage value) { base.List.Insert(index, value); }
public bool Contains(GaugeImage value) { return(base.List.Contains(value)); }
public void Remove(GaugeImage value) { base.List.Remove(value); }
public int Add(GaugeImage value) { return(base.List.Add(value)); }