Exemplo n.º 1
0
        private void btnAddPost_Click(object sender, EventArgs e)
        {
            frmPostDetails frm = new frmPostDetails();

            frm.refreshHandler += async(object s, object q) =>
            {
                await LoadPosts(_artistId, _userId, _chbChecked);
            };
            frm.Show();
        }
Exemplo n.º 2
0
 private void dgvPosts_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     try
     {
         var            id  = dgvPosts.SelectedRows[0].Cells[0].Value;
         frmPostDetails frm = new frmPostDetails(int.Parse(id.ToString()));
         frm.refreshHandler += async(object s, object q) =>
         {
             await LoadPosts(_artistId, _userId, _chbChecked);
         };
         frm.Show();
     }
     catch (Exception)
     {
         MessageBox.Show("Item unavailable");
     }
 }