// EraserToolDialog �� ���� EraserShape property�� ����Ѵ�. void EraserToolOnClick(object sender, RoutedEventArgs args) { EraserToolDialog dlg = new EraserToolDialog(); dlg.Owner = this; dlg.EraserShape = inkcanv.EraserShape; if ((bool)dlg.ShowDialog().GetValueOrDefault()) { inkcanv.EraserShape = dlg.EraserShape; } }
// Display EraserToolDialog and use EraserShape property. void EraserToolOnClick(object sender, RoutedEventArgs args) { EraserToolDialog dlg = new EraserToolDialog(); dlg.Owner = this; dlg.EraserShape = inkcanv.EraserShape; if ((bool)dlg.ShowDialog().GetValueOrDefault()) { inkcanv.EraserShape = dlg.EraserShape; } }