Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (FormEditIntent_Request form = new FormEditIntent_Request(null, mListData_Flat))
     {
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             mIntent_Request = form.mIntent_Request;
             DoRefresh();
         }
     }
 }
Пример #2
0
        private void mListViewData_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Intent_Request data = mListViewData.SelectedObject as Intent_Request;

            if (data != null && data.Intent_RequestID > 0)
            {
                using (FormEditIntent_Request form = new FormEditIntent_Request(data, mListData_Flat))
                {
                    if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        mIntent_Request = form.mIntent_Request;
                        DoRefresh();
                    }
                }
            }
        }
Пример #3
0
        private void btnCopy_Click(object sender, EventArgs e)
        {
            Intent_Request data = mListViewData.SelectedObject as Intent_Request;

            if (data != null && data.Intent_RequestID > 0)
            {
                Intent_Request mDataNew = ObjectCopier.Clone(data);
                mDataNew.Intent_RequestID = 0;
                using (FormEditIntent_Request form = new FormEditIntent_Request(mDataNew, mListData_Flat))
                {
                    if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        mIntent_Request = form.mIntent_Request;
                        DoRefresh();
                    }
                }
            }
        }