private void navBarItem20_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { timer2.Start(); if (SplashScreenManager.Default != null && SplashScreenManager.Default.IsSplashFormVisible) { SplashScreenManager.CloseForm(); } SplashScreenManager.ShowForm(typeof(WaitForm1)); if (list_dev == null) { list_dev = new liste_devis(); } else { wait = 1; } list_dev.MdiParent = Form1.ActiveForm; list_dev.Show(); list_dev.BringToFront(); }
private void Liste_devis() { liste_devis listdevis = new liste_devis(); listdevis.gridControl1.DataSource = null; listdevis.gridView1.Columns.Clear(); listdevis.gridControl1.DataSource = fun.get_devis(); listdevis.gridView1.Columns[0].Caption = "Code Devis"; listdevis.gridView1.Columns[1].Caption = "Date d'ajout de Devis"; listdevis.gridView1.Columns[2].Visible = false; listdevis.gridView1.Columns[3].Visible = false; listdevis.gridView1.Columns[4].Caption = "Etat de Devis "; listdevis.gridView1.Columns[5].Caption = "Client"; listdevis.gridView1.Columns[6].Visible = false; listdevis.gridView1.Columns[7].Visible = false; listdevis.gridView1.Columns[8].Visible = false; listdevis.gridView1.Columns[9].Visible = false; listdevis.gridView1.Columns[10].Visible = false; listdevis.gridView1.Columns[11].Visible = false; listdevis.gridView1.Columns[12].Visible = false; listdevis.gridView1.OptionsView.ShowAutoFilterRow = true; listdevis.Show(); }