private void documentManager_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { if (e.Document != null) { MainForm.GoodsBigTypeName = e.Document.Caption; } }
void View_DocumentActivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { var templateBase = e.Document.Form as XtraFormTemplateBase; if (templateBase != null) { Frame.OnViewChanged(); } }
void XtraTabbedMdiManager_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { if (e.Document == null) { return; } e.Document.Properties.AllowClose = DefaultBoolean.False; e.Document.Properties.AllowFloat = DefaultBoolean.False; }
protected override void OnDocumentActivated(DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { base.OnDocumentActivated(e); if (!(e.Document.Form is IViewHolder)) { return; } // View activeView = ((IViewHolder)e.Document.Form).View; // does not build var activeView = ((IViewHolder)e.Document.Form).View; activeView.RefreshDataSource(); }
private void reportDesigner1_AnyDocumentActivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { XRDesignPanel panel = this.reportDesigner1.ActiveDesignPanel; IDesignerHost host = panel.GetService(typeof(IDesignerHost)) as IDesignerHost; if (e.Document.Caption.Equals("rptStokEnvanter")) { host.Container.Add(new StokEnvanterData()); } if (e.Document.Caption.Equals("rptFaturaBarkodlu") || e.Document.Caption.Equals("rptSiparis") || e.Document.Caption.Equals("rptIrsaliye") || e.Document.Caption.Equals("rptTeklif") || e.Document.Caption.Equals("rptProformaFatura") || e.Document.Caption.Equals("rptBilgi")) { host.Container.Add(new DataSEtler()); } }
private void tabbedView1_DocumentAdded(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { if (tabbedView1.Documents.Count > 0) { try { panelControl1.Hide(); pnlLogin.Visibility = DevExpress.XtraBars.Docking.DockVisibility.AutoHide; layoutControl1.Parent = pnlLogin; } catch { //This is done to prevent a cannot access a disposed object message as this only appears when were tring to close out of the //applicaiton anyway. This way the message is negated. } } }
private void documentManager_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { if (e.Document == null || e.Document.Control == null) { return; } if (!(e.Document.Control is DevExpress.XtraBars.Docking.DockPanel)) { return; } DevExpress.XtraBars.Docking.DockPanel panel = e.Document.Control as DevExpress.XtraBars.Docking.DockPanel; ActivateDockPanel(panel); if (panel.DockedAsTabbedDocument) { UCService.LastActiveDocPanel = panel; } }
private void tabbedView1_DocumentRemoved(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { if (tabbedView1.Documents.Count == 0) { try { panelControl1.Visible = true; gcLogin.Visible = true; gcLogin.BringToFront(); layoutControl1.Parent = gcLogin; layoutControl1.Dock = DockStyle.Fill; pnlLogin.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; } catch { //This is done to prevent a cannot access a disposed object message as this only appears when were tring to close out of the //applicaiton anyway. This way the message is negated. } } }
/// <summary> /// Select the appropriate ribbon tab page for the active module. /// </summary> private void DocManager_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { try { if (e.Document != null) { if (e.Document.Control is IPluginModule module) { e.Document.Image = module.Description.SmallIcon; ribbon.SelectedPage = (DevExpress.XtraBars.Ribbon.RibbonPage)module.StartupRibbonPage; } } else { // Activate the main page when there are no loaded modules ribbon.SelectedPage = rbpMain; } } catch { // Activate the main page when there are no loaded modules ribbon.SelectedPage = rbpMain; } }
private void reportDesigner1_AnyDocumentActivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { //btnSalvar.Enabled = true; }
private void widgetViewMain_DocumentRemoved(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { //MessageBox.Show("widgetViewMain_DocumentRemoved"); }
void customWidgetView1_DocumentActivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { XtraMessageBox.Show((e.Document as CustomDocument).CustomProperty); }
private void DocumentManager_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { WinFormPublic.ShowInPropertyView(null); }
private void DocumentDeactivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { UpdateTiles(); }
private void tabbedView1_DocumentClosed(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { }
private void tabbedView_DocumentActivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { Data.ValueOfDoc = e.Document.Caption; //Каждая смена имени активной таблицы вносится в переменную }
private void DocumentManager1_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e) { }