// Assigning a required content for each auto generated Document void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
private void LoadDocument(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document.ControlName == "Racun") { e.Control = new Racun(); } }
private void tabbedViewMain_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Control != null) { return; } if (e.Document.ControlName == "ProxyUC") { e.Control = docProxyCtr; } else if (e.Document.ControlName == "LoginInfoUC") { e.Control = docLoginInfoCtr; } else if (e.Document.ControlName == "PostListUC") { e.Control = docPostListCtr; } else if (e.Document.ControlName == "CityUC") { e.Control = docCityCtr; } else if (e.Document.ControlName == "CategoryItemUC") { e.Control = docCategoryItemCtr; } else if (e.Document.ControlName == "PostEditorUC") { e.Control = docPostsCtr; } else if (e.Document.ControlName == "MailUC") { e.Control = docMailCtr; } }
// Assigning a required content for each auto generated Document void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { //if (e.Document == xtraFormCompraDocument) // e.Control = new MMercadoAPU.xfCompras(); if (e.Document == xtraFormProductoDocument) { e.Control = new Gm.NET.xfProductAdmin(); } //if (e.Document == xtraFormGrupoDocument) //e.Control = new MMercadoAPU.xuGrupos(); //if (e.Document == xtraFormVentaDocument) // e.Control = new MMercadoAPU.XtraFormVenta(); if (e.Document == xtraFormAforoDocument) { e.Control = new Gm.NET.XtraFormAforo(); } if (e.Document == xtraFormProveedorDocument) { e.Control = new Gm.NET.xfProviderAdmin(); } if (e.Document == xtraFormKardexDocument) { e.Control = new Gm.NET.XtraFormKardex(); } //if (e.Document == xtraFormFacturaAdminDocument) // e.Control = new Gm.NET.xfFacturas(); //if (e.Document == xtraFormVistaVentaDocument) // e.Control = new Gm.NET.XtraFormVistaVenta(); if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
private void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { e.Control = new Control() { BackColor = Color.FromArgb(_r.Next(255), _r.Next(255), _r.Next(255)) }; }
private void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { switch ((int)e.Document.Tag) { case 0: e.Control = new DocumentViewerUserControl() { Report = new ManagementReport() }; break; case 1: e.Control = new DocumentViewerUserControl() { Report = new EmployeeReport() }; break; case 2: EmployeeReport report = new EmployeeReport(); report.Parameters["paramEmpName"].Value = string.Empty; report.Parameters["paramEmpName"].Visible = false; e.Control = new DocumentViewerUserControl() { Report = report }; break; case 3: e.Control = new OptionsUserControl(); break; } }
void _MetroUI_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document.ControlTypeName == "DataSetting") { try { StaticVars.DataSetting_ProcName = e.Document.ControlName; StaticVars.FullClassName = string.Format("{0}.{1}", e.Document.ControlTypeName, e.Document.ControlName); System.Runtime.Remoting.ObjectHandle handle = System.Activator.CreateInstance("HPA.Setting", "HPA.Setting.DynamicUserControl"); HPA.CommonForm.UserControlHasButton frm = (HPA.CommonForm.UserControlHasButton)(handle.Unwrap()); frm.Caption = e.Document.Caption; e.Control = frm; } catch (Exception ex) { //if (MessageBox.Show("Ket noi lai ko?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes) //{ // DBEngine = new EzSqlCollection.EzSql2(HPA.Common.StaticVars.ServerName, HPA.Common.StaticVars.DatabaseName, HPA.Common.StaticVars.UserID_sql, HPA.Common.StaticVars.Password); // DBEngine.open(); // MessageBox.Show("ket noi thanh cong"); //} } } else { e.Control = new Control(); } }
// Assigning a required content for each auto generated Document void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == xtraUserControl1Document) { e.Control = new XmlProcess.NET2._0.XtraUserControl1(); } if (e.Document == xtraUserControl3Document) { e.Control = new XmlProcess.NET2._0.XtraUserControl3(); } if (e.Document == xtraUserControl2Document) { e.Control = new XmlProcess.NET2._0.XtraUserControl2(); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } if (e.Document == document1) { e.Control = CreateSampleContent("Manually Created Doc 1", Color.FromArgb(0, 99, 177)); } if (e.Document == document2) { e.Control = CreateSampleContent("Manually Created Doc 2", Color.FromArgb(231, 72, 86)); } }
private void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { //if (e.Document == document1) // e.Control = new Transactions.SalesVoucher(); //if (e.Document == document2) // e.Control = new Reports.Accountbooks.AccountLedger(); }
private void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == document1) { e.Control = new ucGeneral(); } else { e.Control = new ucDetails(); } }
private void windowUIMenu_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == docLogin) { e.Control = new ucLogin(); } else { e.Control = new PanelControl(); } }
private void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { GridControl grid = new GridControl(); grid.DataSource = GetData(); if (e.Document.Caption == "CardView") { grid.MainView = new CardView(grid); } e.Control = grid; }
private void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (!string.IsNullOrEmpty(e.Document.ControlTypeName)) { e.Control = Activator.CreateInstance(Type.GetType(e.Document.ControlTypeName)) as Control; } else { e.Control = new Control(); } }
private void widgetView_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { e.Control = e.Document.ControlName switch { "EventsCurrentYear" => new EventsCurrentYear(), "RoomBookingsCurrentYear" => new RoomBookingsCurrentYear(), "VenueDetails" => new VenueDetails(), "Venues" => new Venues(), _ => new Control() }; } }
// Assigning a required content for each auto generated Document void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == richEditUserControlDocument) { e.Control = new sample_3_10.RichEditUserControl(); } if (e.Document == gridUserControlDocument) { e.Control = new sample_3_10.GridUserControl(); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
// Assigning a required content for each auto generated Document void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == childFormDocument) { e.Control = new sample_3_6.ChildForm(); } if (e.Document == secondMDIChildDocument) { e.Control = new sample_3_6.SecondMDIChild(); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
private void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == userControl_UsingDetailReportBandDocument) { e.Control = new dxSample.UserControl_UsingDetailReportBand(); } if (e.Document == userControl_SubreportsDocument) { e.Control = new dxSample.UserControl_Subreports(); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
// Assigning a required content for each auto generated Document private void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == this.xtraUserControl1Document) { e.Control = new FrontEnd.XtraUserControl1( ); } if (e.Document == this.xtraUserControl2Document) { e.Control = new FrontEnd.XtraUserControl2( ); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control( ); } }
private void windowUIMenu_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == docLogin) { ucLogin _ucLogin = new ucLogin(); _ucLogin._loginClose = new ucLogin.closeLogin(closeMenu); _ucLogin._loginHide = new ucLogin.closeLogin(hideMenu); _ucLogin._loginShow = new ucLogin.showLogin(showMenu); e.Control = _ucLogin; } else { e.Control = new PanelControl(); } }
private void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { switch (e.Document.ControlTypeName) { case "AbcPos.BackOffice.Win.Views.Artikli": e.Control = new Artikli(); break; case "AbcPos.BackOffice.Win.Views.Dobavljaci": e.Control = new Dobavljaci(); break; } var view = e.Control as View; view.SendMessage += ViewOnSendMessage; }
// Assigning a required content for each auto generated Document void customWidgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == xtraUserControl3Document) { e.Control = new CustomDocumentApplication.XtraUserControl3(); } if (e.Document == xtraUserControl2Document) { e.Control = new CustomDocumentApplication.XtraUserControl2(); } if (e.Document == xtraUserControl1Document) { e.Control = new CustomDocumentApplication.XtraUserControl1(); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
private void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document.Caption == "CardView") { e.Control = CreateNewGrid(new CardView()); } if (e.Document.Caption == "GridView") { e.Control = CreateNewGrid(new GridView()); } if (e.Document.Caption == "TreeList") { e.Control = new ListBoxControl() { DataSource = GetData() } } ; }
// Assigning a required content for each auto generated Document void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == xtraUserControl1Document) { e.Control = new XmlProcess.NET2._0.XtraUserControl1(); } if (e.Document == xtraUserControl3Document) { e.Control = new XmlProcess.NET2._0.XtraUserControl3(); } if (e.Document == xtraUserControl2Document) { e.Control = new XmlProcess.NET2._0.XtraUserControl2(); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
private void LoadControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { switch (e.Document.ControlName) { case "Sinhronizacija": e.Control = IoC.Singleton().Get <Sinhronizacija>(); break; case "Kasa": e.Control = new Kasa(); break; case "PregledProdaje": e.Control = new PregledProdaje(); break; case "Podesavanja": e.Control = IoC.Singleton().Get <Podesavanja>(); break; } }
private void mainWindowsUIView_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document.Equals(documentDBYXZT)) { e.Control = new Dbyxzk(); } else if (e.Document.Equals(documentYHGL)) { e.Control = new Yhgl(); } else if (e.Document.Equals(documentXBJC)) { e.Control = new Xbjc(); } else if (e.Document.Equals(documentSWQX)) { e.Control = new Qx(); } else if (e.Document.Equals(documentSBZT)) { e.Control = new com.tk.dam.Views.Sbzt(); } else if (e.Document.Equals(documentWXZT)) { if (mWxzt == null) { mWxzt = new Wxzt(); } e.Control = mWxzt; } else if (e.Document.Equals(documentSP)) { e.Control = new Sp(); } else { e.Control = new XtraUserControlBase(); } }
// Assigning a required content for each auto generated Document void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document == xuUsuariosDocument) { e.Control = new MMercadoAPU.Herramientas.xuUsuarios(); } if (e.Document == xuGruposDocument) { e.Control = new MMercadoAPU.Herramientas.xuGrupos(); } if (e.Document == xuModulosDocument) { e.Control = new MMercadoAPU.Herramientas.xuModulos(); } if (e.Document == xuTerminalDocument) { e.Control = new MMercadoAPU.Herramientas.xuTerminal(); } if (e.Control == null) { e.Control = new System.Windows.Forms.Control(); } }
private void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { if (e.Document.ControlTypeName == "POS.ucCardWidget") { var smallWidget = new ucCardWidget(); smallWidget.Price = r.Next(100, 1000); smallWidget.PPrice = r.NextDouble() - r.NextDouble(); smallWidget.Delta = r.Next(-50, 100) + r.NextDouble(); e.Control = smallWidget; return; } //else if (e.Document.ControlTypeName == "POS.ucChoroplethMapItem") //{ // e.Control = new POS.ucChoroplethMapItem(); //} if (!string.IsNullOrEmpty(e.Document.ControlTypeName)) { var control = Activator.CreateInstance(Type.GetType(e.Document.ControlTypeName)) as Control; e.Control = control; } }
//Random r = new Random(); private void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { e.Control = Activator.CreateInstance(Type.GetType(e.Document.ControlTypeName)) as Control; //e.Document.Caption = "AA"; //if (e.Document.ControlTypeName == "DevExpress.ApplicationUI.Demos.ucCardWidget") //{ // var smallWidget = new UserControl1(); // //smallWidget.Price = r.Next(100, 1000); // //smallWidget.PPrice = r.NextDouble() - r.NextDouble(); // //smallWidget.Delta = r.Next(-50, 100) + r.NextDouble(); // e.Control = smallWidget; // return; //} //if (!string.IsNullOrEmpty(e.Document.ControlTypeName)) //{ // var control = Activator.CreateInstance(Type.GetType(e.Document.ControlTypeName)) as Control; // e.Control = control; //} }
private void windowsUIView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { }
private void tabbedView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) { e.Control = new Control(); }