コード例 #1
0
        //发表动态
        private void add_post_Click(object sender, EventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                fristLoad.Visibility = Visibility.Visible;
            });
            Dictionary <string, string> postDic = new Dictionary <string, string>()
            {
                { "p_id", id },
                { "r_msg", postText.Text.Trim() }
            };

            PostViewModel.Add_reply(postDic, ResultNewPost);
        }