private void addToolStripMenuItem3_Click(object sender, EventArgs e) { frmNewsAdd frm = new frmNewsAdd(); frm.MdiParent = this; frm.Show(); }
private async void dgvUserNews_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frmNewsSearchVM item = dgvUserNews.SelectedRows[0].DataBoundItem as frmNewsSearchVM; var x = await _serviceNews.GetById <News>(item.Id); frmNewsAdd frm = new frmNewsAdd(x); frm.WindowState = FormWindowState.Normal; frm.Show(); }