private void Button_RunDraw_Click(object sender, RoutedEventArgs e) { AudioUtil.ClickSound(); Memory.SetForegroundWindow(); if (DrawWindow == null) { DrawWindow = new DrawWindow(); DrawWindow.Show(); } }
public MainForm() { InitializeComponent(); CvInvoke.UseOpenCL = false; _drawWindow = new DrawWindow(); _drawWindow.Show(this); _strokeRecognizer.OnStrokeUpdated += StrokeUpdated; _strokeRecognizer.OnClearZoneHit += ClearZoneHit; _drawing.OnBitmapChanged += () => { _drawWindow.Image = _drawing.Bitmap; }; _drawing.RecreateBitmap(); drawWindowPropertyGrid.PropertyValueChanged += (o, args) => _drawWindow.RefreshSoon(); UpdatePropertyGrids(); _tuioReceiver.PointReceived += TuioReceiverOnPointReceived; tuioCheckbox.Checked = true; TuioChanged(null, null); StartOrStopCapture(captureCheckbox.Checked); _uiUpdateTimer.Tick += (sender, args) => UpdateUI(); }
private void MenuItemDrawWindow_Click(object sender, EventArgs e) { m_drawWindow.Show(dockPanel); }