private void NewClick() { var w = new WorkCentersSub(0, TypeAction.Add); w.ShowDialog(); DataLoad(); }
private void ViewClick() { if (radGridView1.CurrentCell != null) { var w = new WorkCentersSub(radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt(), TypeAction.View); w.ShowDialog(); DataLoad(); } }
private void EditClick() { if (radGridView1.CurrentCell != null) { //var w = new WorkCentersDetail(radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt(), TypeAction.Edit); //w.ShowDialog(); //DataLoad(); var w = new WorkCentersSub(radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt(), TypeAction.Edit); w.ShowDialog(); DataLoad(); } }
private void btnSubWorkCenter_Click(object sender, EventArgs e) { if (radGridView1.CurrentCell != null) { var v = radGridView1.CurrentCell; if (v.RowInfo.Cells["dgvCodetemp"].Value.ToInt() > 0) { var workid = radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt(); var w = new WorkCentersSub(workid, TypeAction.Edit); w.ShowDialog(); } } }