示例#1
0
 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();
            }
        }
示例#3
0
 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;
 }
示例#4
0
        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();
        }
示例#5
0
        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());
            }
        }
示例#6
0
 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.
         }
     }
 }
示例#7
0
 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;
     }
 }
示例#8
0
 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.
         }
     }
 }
示例#9
0
 /// <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;
     }
 }
示例#10
0
 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");
 }
示例#12
0
 void customWidgetView1_DocumentActivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e)
 {
     XtraMessageBox.Show((e.Document as CustomDocument).CustomProperty);
 }
示例#13
0
 private void DocumentManager_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e)
 {
     WinFormPublic.ShowInPropertyView(null);
 }
示例#14
0
 private void DocumentDeactivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e)
 {
     UpdateTiles();
 }
示例#15
0
 private void tabbedView1_DocumentClosed(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e)
 {
 }
示例#16
0
 private void tabbedView_DocumentActivated(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e)
 {
     Data.ValueOfDoc = e.Document.Caption;
     //Каждая смена имени активной таблицы вносится в переменную
 }
示例#17
0
 private void DocumentManager1_DocumentActivate(object sender, DevExpress.XtraBars.Docking2010.Views.DocumentEventArgs e)
 {
 }