private void EditPost(object sender, RoutedEventArgs e) { ChangePost editPost = new ChangePost(personNickname, "edit", currentPost) { WindowStartupLocation = WindowStartupLocation.CenterScreen }; editPost.ShowDialog(); }
private void AddNewPost(object sender, RoutedEventArgs e) { ChangePost newPost = new ChangePost(personNickname, "add") { WindowStartupLocation = WindowStartupLocation.CenterScreen }; newPost.ShowDialog(); }