Beispiel #1
0
        //发表动态
        private void add_post_Click(object sender, EventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                fristLoad.Visibility = Visibility.Visible;
            });

            string s_type = "3";

            if (allUser.IsChecked == true)
            {
                s_type = "0";
            }
            Dictionary <string, string> postDic = new Dictionary <string, string>()
            {
                { "g_id", string.Empty },
                { "p_msg", postText.Text.Trim() },
                { "p_type", "0" },
                { "s_type", s_type },
                { "format", "json" }
            };

            PostViewModel.PostUpdate(postDic, ResultNewPost);
        }