public GaugeLabel Add(string name)
        {
            GaugeLabel gaugeLabel = new GaugeLabel();

            gaugeLabel.Name = name;
            this.Add(gaugeLabel);
            return(gaugeLabel);
        }
        public override object Clone()
        {
            MemoryStream           stream = new MemoryStream();
            BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer();

            binaryFormatSerializer.Serialize(this, stream);
            GaugeLabel gaugeLabel = new GaugeLabel();

            binaryFormatSerializer.Deserialize(gaugeLabel, stream);
            return(gaugeLabel);
        }
        protected override void OnInsertComplete(int index, object value)
        {
            base.OnInsertComplete(index, value);
            GaugeLabel gaugeLabel = (GaugeLabel)value;

            if (gaugeLabel.Position.DefaultValues && index != 0)
            {
                GaugeLabel gaugeLabel2 = this[index - 1];
                gaugeLabel.Location.X = (float)(gaugeLabel2.Location.X + 3.0);
                gaugeLabel.Location.Y = (float)(gaugeLabel2.Location.Y + 3.0);
            }
            if (gaugeLabel.DefaultParent && gaugeLabel.Parent.Length == 0 && base.Common != null)
            {
                if (base.Common.GaugeContainer.CircularGauges.Count > 0)
                {
                    gaugeLabel.Parent = "CircularGauges." + base.Common.GaugeContainer.CircularGauges[0].Name;
                }
                else if (base.Common.GaugeContainer.LinearGauges.Count > 0)
                {
                    gaugeLabel.Parent = "LinearGauges." + base.Common.GaugeContainer.LinearGauges[0].Name;
                }
            }
        }
 public int IndexOf(GaugeLabel value)
 {
     return(base.List.IndexOf(value));
 }
 public void Insert(int index, GaugeLabel value)
 {
     base.List.Insert(index, value);
 }
 public bool Contains(GaugeLabel value)
 {
     return(base.List.Contains(value));
 }
 public void Remove(GaugeLabel value)
 {
     base.List.Remove(value);
 }
 public int Add(GaugeLabel value)
 {
     return(base.List.Add(value));
 }