コード例 #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);
		}