Ejemplo n.º 1
0
 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();
         }
     }
 }
Ejemplo n.º 2
0
        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();
                    }
                }
            }
        }
Ejemplo n.º 3
0
        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();
                    }
                }
            }
        }