private void editText(object sender, RoutedEventArgs e) { Button senderButton = sender as Button; Plotpoint senderPoint = gameFile.getPoint(pointsPanel.Children.IndexOf(senderButton.Parent as UIElement)); TextEditWindow textWindow = new TextEditWindow(senderPoint.setText); textWindow.setText(senderPoint.getText()); textWindow.Show(); }
private void editTextButton_Click(object sender, RoutedEventArgs e) { TextEditWindow textWindow = new TextEditWindow(setTempText); textWindow.Show(); }