/// <summary> /// When the volumePS chart has changed, this is called which updates hte costPS chart. /// </summary> private void volumePS_InteractionOccured(object sender) { DateTimeAxis axis = new DateTimeAxis(volumePS.XAxis1); axis.Label = ""; axis.HideTickText = true; this.costPS.XAxis1 = axis; this.costPS.Refresh(); }
/// <summary> /// When the costPS chart has changed, this is called which updates the volumePS chart. /// </summary> /// <param name="sender"></param> private void costPS_InteractionOccured(object sender) { DateTimeAxis axis = new DateTimeAxis(costPS.XAxis1); axis.Label = "Date / Time"; axis.HideTickText = false; this.volumePS.XAxis1 = axis; this.volumePS.Refresh(); }
/// <summary> /// Helper method for Clone. /// </summary> /// <param name="a">The original object to clone.</param> /// <param name="b">The cloned object.</param> protected static void DoClone( DateTimeAxis b, DateTimeAxis a ) { Axis.DoClone( b, a ); }
/// <summary> /// Helper method for Clone. /// </summary> /// <param name="a">The original object to clone.</param> /// <param name="b">The cloned object.</param> protected static void DoClone(DateTimeAxis b, DateTimeAxis a) { Axis.DoClone(b, a); }
/// <summary> /// Deep copy of DateTimeAxis. /// </summary> /// <returns>A copy of the DateTimeAxis Class.</returns> public override object Clone() { DateTimeAxis a = new DateTimeAxis(); // ensure that this isn't being called on a derived type. If it is, then oh no! if (this.GetType() != a.GetType()) { throw new FlorenceException( "Clone not defined in derived type. Help!" ); } DoClone( this, a ); return a; }