private void btnAdd_Click(object sender, EventArgs e) { using (FormEditIntent form = new FormEditIntent(null, mListData_Flat)) { if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { mIntent = form.mIntent; DoRefresh(); } } }
private void mListViewData_MouseDoubleClick(object sender, MouseEventArgs e) { Intent data = mListViewData.SelectedObject as Intent; if (data != null && data.IntentID > 0) { using (FormEditIntent form = new FormEditIntent(data, mListData_Flat)) { if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { mIntent = form.mIntent; DoRefresh(); } } } }