public void Initialize(Rectangle clientRect) { Geometry = new ClientGeometry { Rectangle = clientRect }; StackC1C2.Clear(); CreateDefaultFirstFrame(); }
private void CreateDefaultFirstFrame() { StackC1C2.Push(CreateNewFrame(Geometry.Rectangle)); StackC0C1.Push(CreateNewFrame(Geometry.Rectangle)); StackC0C2.Push(CreateNewFrame(Geometry.Rectangle)); var font = new Font(FontFamily.GenericSansSerif, 10); var white = new SolidBrush(Config.BackgroundColor); var yellow = new SolidBrush(Config.GPositiveFillColor); var black = new SolidBrush(Config.LegendColor); var circleRect = new RectangleF((float)Geometry.ClientCircleX, (float)Geometry.ClientCircleY, (float)Geometry.ClientCircleRadius * 2, (float)Geometry.ClientCircleRadius * 2); DrawOnGraphics(g => { g.FillRectangle(white, Geometry.Rectangle); g.FillEllipse(yellow, circleRect); g.DrawString("C1C2", font, black, 10, 10); }, StackC1C2.CurrentFrame.Image); DrawOnGraphics(g => { g.FillRectangle(white, Geometry.Rectangle); g.FillEllipse(yellow, circleRect); g.DrawString("C0C1", font, black, 10, 10); }, StackC0C1.CurrentFrame.Image); DrawOnGraphics(g => { g.FillRectangle(white, Geometry.Rectangle); g.FillEllipse(yellow, circleRect); g.DrawString("C0C2", font, black, 10, 10); }, StackC0C2.CurrentFrame.Image); DrawInitialFigureC1C2(); DrawInitialFigureC0C1(); DrawInitialFigureC0C2(); foreach (var fixedPoint in FixedPoints) { SelectCPointArea(fixedPoint, 0.03, fixedPoint.Color); } }