示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (addOwe == false)
     {
         addOwe owe = new addOwe();
         addOwe = true;
         owe.Show();
         owe.FormClosed += AddOwe_Close;
     }
 }
示例#2
0
 private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (addOwe == false)
     {
         addOwe detail = new addOwe();
         detail.Show();
         addOwe             = true;
         detail.FormClosed += AddOwe_Close;
         string id  = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
         OweDTO dto = dao.ShowDetail(id);
         detail.Dto = dto;
         detail.ShowDetail();
     }
 }