예제 #1
0
 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();
         }
     }
 }
예제 #2
0
        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();
                    }
                }
            }
        }