コード例 #1
0
        private void EditPost(object sender, RoutedEventArgs e)
        {
            ChangePost editPost = new ChangePost(personNickname, "edit", currentPost)
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };

            editPost.ShowDialog();
        }
コード例 #2
0
        private void AddNewPost(object sender, RoutedEventArgs e)
        {
            ChangePost newPost = new ChangePost(personNickname, "add")
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };

            newPost.ShowDialog();
        }