private void btnAdd_Click(object sender, EventArgs e) { using (FormEditIntent_Response form = new FormEditIntent_Response(null, mListData_Flat)) { if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { mIntent_Response = form.mIntent_Response; DoRefresh(); } } }
private void mListViewData_MouseDoubleClick(object sender, MouseEventArgs e) { Intent_Response data = mListViewData.SelectedObject as Intent_Response; if (data != null && data.Intent_ResponseID > 0) { using (FormEditIntent_Response form = new FormEditIntent_Response(data, mListData_Flat)) { if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { mIntent_Response = form.mIntent_Response; DoRefresh(); } } } }
private void btnCopy_Click(object sender, EventArgs e) { Intent_Response data = mListViewData.SelectedObject as Intent_Response; if (data != null && data.Intent_ResponseID > 0) { Intent_Response mDataNew = ObjectCopier.Clone(data); mDataNew.Intent_ResponseID = 0; using (FormEditIntent_Response form = new FormEditIntent_Response(mDataNew, mListData_Flat)) { if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { mIntent_Response = form.mIntent_Response; DoRefresh(); } } } }