Example #1
0
        private void InitTools()
        {
            DrawTools.Children.OfType <RadioButton>().ToArray()[0].IsChecked = true;
            selectedTool = Drawing.DrawTool.Pen;

            capturer = new Drawing.Capturer();
            pen      = new Drawing.Pen(DrawCanvas, EraseThickSlider.Value);
        }
Example #2
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();
        }