Ejemplo n.º 1
0
    private void Button_RunDraw_Click(object sender, RoutedEventArgs e)
    {
        AudioUtil.ClickSound();

        Memory.SetForegroundWindow();

        if (DrawWindow == null)
        {
            DrawWindow = new DrawWindow();
            DrawWindow.Show();
        }
    }
Ejemplo n.º 2
0
Archivo: MainForm.cs Proyecto: akx/ltag
 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();
 }
Ejemplo n.º 3
0
 private void MenuItemDrawWindow_Click(object sender, EventArgs e)
 {
     m_drawWindow.Show(dockPanel);
 }