public static string ShowWindowDialog(string origComment) { var cew = new CommentEditWindow(); cew.txtComment.Text = cew.comment = origComment; cew.ShowDialog(); return(cew.comment); }
private void btnComment_Click(object sender, RoutedEventArgs e) { txtComment.Text = rule.comment = CommentEditWindow.ShowWindowDialog(rule.comment); }