예제 #1
0
파일: Chart.cs 프로젝트: heber/FreeOQ
		public virtual void ShowProperties(DSView view, Pad pad, bool forceShowProperties)
		{
		}
예제 #2
0
파일: Chart.cs 프로젝트: heber/FreeOQ
		public void DrawSeries(DoubleSeries series, int padNumber, Color color, SimpleDSStyle style, EIndexOption option, SmoothingMode smoothingMode)
		{
			lock(this.dataLock)
			{
				if (!this.volumePadShown && padNumber > 1)
					--padNumber;
				DSView view = new DSView(this.pads[padNumber], series, color, option, smoothingMode);
				view.Style = style;
				this.pads[padNumber].AddPrimitive(view);
				view.SetInterval(this.leftDateTime, this.rightDateTime);
				this.contentUpdated = true;
			}
		}
예제 #3
0
파일: Chart.cs 프로젝트: smther/FreeOQ
		public override void ShowProperties(DSView seriesView, Pad pad, bool forceShowProperties)
		{
			object obj = (object)null;
			if (seriesView.MainSeries.GetType().IsSubclassOf(typeof(Indicator)))
			{
				obj = Activator.CreateInstance(System.Type.GetType("OpenQuant.API.Indicators." + ((object)((SeriesView)seriesView).MainSeries).GetType().Name + ", OpenQuant.API"), true);
				obj.GetType().GetField("indicator", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.GetField).SetValue(obj, (object)((SeriesView)seriesView).MainSeries);
			}
			if (this.ChartPropertiesCalled == null)
				return;
			this.ChartPropertiesCalled((object)new Tuple<object, bool>(obj, forceShowProperties), EventArgs.Empty);
		}