private void btnShowPosts_Click(object sender, EventArgs e) { frmShowPosts posts = new frmShowPosts() { UserName = txtUserName.Text }; posts.ShowDialog(); }
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(); }