Esempio n. 1
0
 protected C3DrawingSystemWpf(IC3Sketch sketch)
 {
     Sketch      = sketch;
     watch       = new Stopwatch();
     timer       = new DispatcherTimer();
     timer.Tick += OnTimerOnTick;
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 public C3DrawingSystemWpfSkiaSharp(IC3Sketch sketch) : base(sketch)
 {
 }