private void NewFinance_Click(object sender, EventArgs e) { EditFinDetail f = new EditFinDetail(); f.StartPosition = FormStartPosition.CenterParent; f.ShowDialog(this); }
private void FinDetailDataView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int id = Convert.ToInt32(this.FinDetailDataView.Rows[e.RowIndex].Cells[0].Value); if (id == 0) return; EditFinDetail f = new EditFinDetail(); f.UpdateDetail = finOrderManager.GetFinDetail(id); f.ShowDialog(this); }