private void TextAddShape(object sender, RoutedEventArgs e) { if (SelectedEditMode != EditModes.Draw) { MessageBox.Show("Musisz wybrać kształt który chcesz dodać!", "Błąd"); return; } TextEditDialog dialog = new TextEditDialog(this); dialog.Show(); }
private void TextEditShape(object sender, MouseButtonEventArgs e) { TextEditDialog dialog = new TextEditDialog(ShapeToEdit); dialog.Show(); }