private void cETToolStripMenuItem_Click(object sender, EventArgs e) { cetXF frm = new cetXF(); frm.MdiParent = Program.MF; frm.DDRow = (DataSetGnl.DDRow)gridView1.GetFocusedDataRow(); frm.Text = $"{gridView1.GetFocusedRowCellValue(colAd)} Events [cetXF]"; frm.Show(); }
private void CETnavBarItem_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { var doc = documentManager1.GetDocument(frmCET); if (doc != null) { tabbedView1.Controller.Activate(doc); } else { frmCET = new cetXF { MdiParent = this }; frmCET.Show(); } }
private void eventsToolStripMenuItem_Click(object sender, EventArgs e) { // CC.Skl ine gore T/F if (gridView1.GetFocusedRowCellValue(colSkl).ToString() == "T") { cetXF frm = new cetXF(); frm.MdiParent = Program.MF; frm.CCRow = (DataSetGnl.CCRow)gridView1.GetFocusedDataRow(); frm.Text = $"{gridView1.GetFocusedRowCellValue(colAd)} / {gridView1.GetFocusedRowCellValue(colSkl)} Events [cetXF]"; frm.Show(); } else if (gridView1.GetFocusedRowCellValue(colSkl).ToString() == "F") { cefXF frm = new cefXF(); frm.MdiParent = Program.MF; frm.CCRow = (DataSetGnl.CCRow)gridView1.GetFocusedDataRow(); frm.Text = $"{gridView1.GetFocusedRowCellValue(colAd)} / {gridView1.GetFocusedRowCellValue(colSkl)} Events [cefXF]"; frm.Show(); } }