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); }
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(); }