Exemple #1
0
        private void menuInsert_Click(object sender, EventArgs e)
        {
            FormRecordDetail formRecord = new FormRecordDetail(FormRecordDetail.Mode.INSERT, null);

            formRecord.ShowDialog();
            if (formRecord.formResult == true)
            {
                dbService.insert(loginInfo, loginInfo.password, formRecord.srcItem);
                showAllRecord();
            }
        }
Exemple #2
0
 private void menuEdit_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.DataBoundItem != null)
     {
         PubMemo          srcItem    = dataGridView1.CurrentRow.DataBoundItem as PubMemo;
         FormRecordDetail formRecord = new FormRecordDetail(FormRecordDetail.Mode.EDIT, srcItem);
         formRecord.ShowDialog();
         if (formRecord.formResult == true)
         {
             dbService.update(loginInfo, loginInfo.password, formRecord.srcItem);
             showAllRecord();
         }
     }
     else
     {
         MessageBox.Show("수정할 항목을 먼저 선택해야 합니다.");
     }
 }