示例#1
0
        private void btnShowPosts_Click(object sender, EventArgs e)
        {
            frmShowPosts posts = new frmShowPosts()
            {
                UserName = txtUserName.Text
            };

            posts.ShowDialog();
        }
示例#2
0
        private void btnShowPosts_Click(object sender, EventArgs e)
        {
            frmShowPosts posts = new frmShowPosts()
            {
                UserName = dgvFollowers.CurrentRow.Cells[0].Value.ToString()
            };

            posts.ShowDialog();
        }
        private async void btnMyPosts_Click(object sender, EventArgs e)
        {
            var userInfo = await ApiManage.instaApi.AccountProcessor.GetRequestForEditProfileAsync();

            frmShowPosts posts = new frmShowPosts()
            {
                UserName = userInfo.Value.Username
            };

            posts.ShowDialog();
        }