private void btnAddItem_Click(object sender, EventArgs e) { DialogBojDetail d = new DialogBojDetail(this.main_form); d.ShowDialog(); this.GetBojData(); this.FillForm(this.boj5_header, this.boj5_detail); }
private void btnEditItem_Click(object sender, EventArgs e) { if (this.dgv.CurrentCell == null) { return; } boj5_detail detail = (boj5_detail)this.dgv.Rows[this.dgv.CurrentCell.RowIndex].Cells[this.col_boj5_detail.Name].Value; DialogBojDetail d = new DialogBojDetail(this.main_form, detail); d.ShowDialog(); this.GetBojData(); this.FillForm(this.boj5_header, this.boj5_detail); }