private void FigureChangedHandler(object sender, FigureEventArgs args) { if (_displayBox.Contains(args.Rectangle)) { return; } _displayBox.Add(args.Rectangle); //OnSizeAllocated (); }
protected override void FigureInvalidatedHandler(object sender, FigureEventArgs args) { OnDrawingInvalidated(new DrawingEventArgs(this, args.Rectangle)); }
public void OnSetFigure_Event(FigureType figure) { FigureEventArgs args = new FigureEventArgs(figure); OnSetFigure?.Invoke(this, args); }