コード例 #1
0
        private void addToolStripMenuItem3_Click(object sender, EventArgs e)
        {
            frmNewsAdd frm = new frmNewsAdd();

            frm.MdiParent = this;
            frm.Show();
        }
コード例 #2
0
        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();
        }