Beispiel #1
0
            private Image GetBarGraph()
            {
                RandomUtil ru = new RandomUtil();
                BarGraph   bg = new BarGraph(this.Size);

                bg.Color         = Color.White;
                bg.ColorGradient = Color.Orange;

                Legend legend = new Legend(this.Width, 70);

                legend.Text = String.Empty;
                bg.Text     = _displayString + " Total: " + _totalComponents.ToString();

                ICollection keys = _componentInfoTable.Keys;
                IEnumerator ie   = keys.GetEnumerator();

                while (ie.MoveNext())
                {
                    Type          key = (Type)ie.Current;
                    ComponentInfo ci  = (ComponentInfo)_componentInfoTable[key];
                    BarSlice      bs  = new BarSlice(ci.Count, ci.Color);

                    bg.BarSliceCollection.Add(bs);

                    LegendEntry le = new LegendEntry(ci.Color, ci.Type.Name.ToString().Trim());

                    legend.LegendEntryCollection.Add(le);
                }

                return(GraphRenderer.DrawGraphAndLegend(bg, legend, this.Size));
            }
 internal void method_14(BarSlice barSlice_0)
 {
     if (this.strategy__0 != null && this.Status == StrategyStatus.Running)
     {
         for (int i = 0; i < this.list_0.Count; i++)
         {
             this.list_0[i].vmethod_17(barSlice_0);
         }
     }
 }
Beispiel #3
0
			private Image GetBarGraph()
			{
				RandomUtil ru = new RandomUtil();
				BarGraph bg = new BarGraph(this.Size);

				bg.Color = Color.White;
				bg.ColorGradient = Color.Orange;

				Legend legend = new Legend(this.Width, 70);

				legend.Text = String.Empty;
				bg.Text = _displayString + " Total: " + _totalComponents.ToString();

				ICollection keys = _componentInfoTable.Keys;
				IEnumerator ie = keys.GetEnumerator();

				while (ie.MoveNext())
				{
					Type key = (Type)ie.Current;
					ComponentInfo ci = (ComponentInfo)_componentInfoTable[key];
					BarSlice bs = new BarSlice(ci.Count, ci.Color);

					bg.BarSliceCollection.Add(bs);

					LegendEntry le = new LegendEntry(ci.Color, ci.Type.Name.ToString().Trim());

					legend.LegendEntryCollection.Add(le);
				}

				return GraphRenderer.DrawGraphAndLegend(bg, legend, this.Size);
			}
Beispiel #4
0
 internal void method_14(BarSlice barSlice_0)
 {
     if (this.strategy__0 != null && this.Status == StrategyStatus.Running)
     {
         for (int i = 0; i < this.list_0.Count; i++)
         {
             this.list_0[i].vmethod_17(barSlice_0);
         }
     }
 }