コード例 #1
0
        private void ClearCanvasAndCapturer_MouseDown(object sender, RoutedEventArgs e)
        {
            var okbox = new MessageBox.OkMessageBox("Really clear this canvas?");

            okbox.ShowDialog();
            if (!okbox.Ok())
            {
                return;
            }
            capturer = new Drawing.Capturer();
            DrawCanvas.Children.Clear();
        }
コード例 #2
0
        private void RecordCanvasBtn_Clicked(object sender, RoutedEventArgs e)
        {
            if (currentState != WindowState.Maximized)
            {
                var okbox = new MessageBox.OkMessageBox("The result of recording will be low quality.");
                okbox.ShowDialog();
                if (!okbox.Ok())
                {
                    return;
                }
            }

            //record ...
        }