private void NotifyAllObjectRenamed(PlotObject value, string oldName) { foreach (PlotObject item in this) { item.ObjectRenamed(value, oldName); } }
private void NotifyAllObjectAdded(PlotObject value) { foreach (PlotObject item in this) { item.ObjectAdded(value); } }
private void HandleObjectRenamed(PlotObject value, string oldName) { if (this.ObjectRenamed != null) { this.ObjectRenamed(value, new PlotObjectRenamedEventArgs(value, oldName)); } }
protected override void SetupObjectBeforeAmbientControlBaseConnection(object value) { base.SetupObjectBeforeAmbientControlBaseConnection(value); PlotObject plotObject = value as PlotObject; if (this.BaseName != null && plotObject.Name == Const.EmptyString) { this.m_InitialSetup = true; int num = 0; foreach (PlotObject item in this) { if (item.Name.ToUpper().StartsWith(this.BaseName.ToUpper())) { string s = item.Name.Substring(this.BaseName.Length); if (double.TryParse(s, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, (IFormatProvider)CultureInfo.InvariantCulture, out double num2) && (int)num2 > num) { num = (int)num2; } } } plotObject.Name = this.BaseName + " " + Convert2.ToString(num + 1); plotObject.TitleText = (value as PlotObject).Name; } else { this.m_InitialSetup = false; } }
public override void ObjectRenamed(PlotObject value, string oldName) { base.ObjectRenamed(value, oldName); if (value is PlotDataView && oldName == this.m_DockDataViewName) { this.m_DockDataViewName = value.Name; } }
public override void ObjectRemoved(PlotObject value) { base.ObjectRemoved(value); if (value == this.m_CachedDockDataView) { this.m_CachedDockDataView = null; } }
public override void ObjectAdded(PlotObject value) { base.ObjectAdded(value); if (value is PlotDataView && value.Name == this.m_DockDataViewName) { this.m_CachedDockDataView = (value as PlotDataView); } }
public override void ObjectRemoved(PlotObject value) { base.ObjectRemoved(value); if (value == this.m_CachedLegend) { this.m_CachedLegend = null; } }
public override void ObjectAdded(PlotObject value) { base.ObjectAdded(value); if (value is PlotLegendBase && value.Name == this.m_LegendName) { this.m_CachedLegend = (value as PlotLegendBase); } }
public override void ObjectRenamed(PlotObject value, string oldName) { base.ObjectRenamed(value, oldName); if (value is PlotChannelBase && oldName == this.m_ChannelName) { this.m_ChannelName = value.Name; } }
public override void ObjectRemoved(PlotObject value) { base.ObjectRemoved(value); if (value == this.m_CachedChannel) { this.m_CachedChannel = null; } }
public override void ObjectAdded(PlotObject value) { base.ObjectAdded(value); if (value is PlotChannelBase && value.Name == this.m_ChannelName) { this.m_CachedChannel = (value as PlotChannelBase); } }
public override void ObjectAdded(PlotObject value) { base.ObjectAdded(value); if (value is PlotAxis && value.Name == this.m_DockStartAxisName) { this.m_CachedDockStartAxis = (value as PlotAxis); } else if (value is PlotAxis && value.Name == this.m_DockStopAxisName) { this.m_CachedDockStopAxis = (value as PlotAxis); } }
public override void ObjectRemoved(PlotObject value) { base.ObjectRemoved(value); if (value == this.m_CachedDockStartAxis) { this.m_CachedDockStartAxis = null; } else if (value == this.m_CachedDockStopAxis) { this.m_CachedDockStopAxis = null; } }
public override void ObjectRenamed(PlotObject value, string oldName) { base.ObjectRenamed(value, oldName); if (value is PlotAxis && oldName == this.m_DockStartAxisName) { this.m_DockStartAxisName = value.Name; } else if (value is PlotAxis && oldName == this.m_DockStopAxisName) { this.m_DockStopAxisName = value.Name; } }
public override void ObjectAdded(PlotObject value) { base.ObjectAdded(value); if (value is PlotXAxis && value.Name == this.m_XAxisName) { this.m_CachedXAxis = (value as PlotXAxis); } else if (value is PlotYAxis && value.Name == this.m_YAxisName) { this.m_CachedYAxis = (value as PlotYAxis); } }
int IComparer.Compare(object x, object y) { PlotObject plotObject = x as PlotObject; PlotObject plotObject2 = y as PlotObject; if (plotObject == null) { throw new Exception("x is not a PlotObject object"); } if (plotObject2 == null) { throw new Exception("y is not a PlotObject object"); } return(plotObject.LayerWithSubLevel.CompareTo(plotObject2.LayerWithSubLevel)); }
public int IndexOf(PlotObject value) { return(this.m_List.IndexOf(value)); }
void IPlotObjectCollectionBase.NotifyAllObjectAdded(PlotObject value) { this.NotifyAllObjectAdded(value); }
public PlotObjectRenamedEventArgs(PlotObject value, string oldName) { this.m_Object = value; this.m_OldName = oldName; }
public virtual void ObjectRenamed(PlotObject value, string oldName) { }
public virtual void ObjectRemoved(PlotObject value) { }
public virtual void ObjectAdded(PlotObject value) { }
void IPlotObjectCollectionBase.HandleObjectRenamed(PlotObject value, string oldName) { this.HandleObjectRenamed(value, oldName); }
void IPlotObjectCollectionBase.NotifyAllObjectRenamed(PlotObject value, string oldName) { this.NotifyAllObjectRenamed(value, oldName); }
public int Add(PlotObject value) { return(this.m_List.Add(value)); }