private void btnCreateSeries_Click(object sender, EventArgs e) { frmNewSeries create = new frmNewSeries(); create.FormClosed += new FormClosedEventHandler(create_FormClosed); create.ShowDialog(); }
private void btnEditSeries_Click(object sender, EventArgs e) { if (this.ulvFormSeries.SelectedItems.Count > 0) { frmNewSeries edit = new frmNewSeries(FormSeriesDAO.DAO.Load(Convert.ToInt32(this.ulvFormSeries.SelectedItems[0].Key))); edit.FormClosed += new FormClosedEventHandler(create_FormClosed); edit.ShowDialog(); } }