protected C3DrawingSystemWpf(IC3Sketch sketch) { Sketch = sketch; watch = new Stopwatch(); timer = new DispatcherTimer(); timer.Tick += OnTimerOnTick; }
public MainWindow() { InitializeComponent(); try { IC3Sketch sketch = GetSketch("Example"); drawingSystem = new C3DrawingSystemWpfSkiaSharp(sketch) { UpdateToolbar = (t) => this.toolbar.Text = t }; drawingSystem.Setup((int)this.Width, (int)this.Height, 60); this.image.Source = drawingSystem.GetImageSource(); drawingSystem.Start(); } catch (Exception e) { MessageBox.Show(e.ToString(), e.GetType().Name); Environment.Exit(-1); } }
public C3DrawingSystemWpfSkiaSharp(IC3Sketch sketch) : base(sketch) { }