Ejemplo n.º 1
0
        private void CTnavBarItem_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            var doc = documentManager1.GetDocument(frmCT);

            if (doc != null)
            {
                tabbedView1.Controller.Activate(doc);
            }
            else
            {
                frmCT = new ctXF
                {
                    MdiParent = this
                };
                frmCT.Show();
            }
        }
Ejemplo n.º 2
0
        private void teamsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (gridView1.GetFocusedRowCellValue(colSkl).ToString() == "T")
            {
                ctXF frm = new ctXF();
                frm.MdiParent = Program.MF;
                frm.CCRow     = (DataSetGnl.CCRow)gridView1.GetFocusedDataRow();
                frm.Text      = $"{gridView1.GetFocusedRowCellValue(colAd)} Teams [ctXF]";

                frm.Show();
            }
            else if (gridView1.GetFocusedRowCellValue(colSkl).ToString() == "F")
            {
                cfXF frm = new cfXF();
                frm.MdiParent = Program.MF;
                frm.CCRow     = (DataSetGnl.CCRow)gridView1.GetFocusedDataRow();
                frm.Text      = $"{gridView1.GetFocusedRowCellValue(colAd)} Players [cfXF]";
                frm.Show();
            }
        }