private void BtnNew_Click(object sender, EventArgs e) { FrmCustomer frmCustomer = new FrmCustomer(); frmCustomer.ShowDialog(); // if(frmCustomer.SaveCompleted) { LoadData(); } }
private void BtnView_Click(object sender, EventArgs e) { GridEXRow currentRow = gridList.GetRow(); if (currentRow != null || currentRow.RowType == RowType.Record) { Guid id = Guid.Parse(currentRow.Cells["ID"].Value.ToString()); FrmCustomer frmCustomer = new FrmCustomer(false, id); frmCustomer.ShowDialog(); } }