Esempio n. 1
0
 private void tabCtrlTradeDetail_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     if (_currentTradeRow != null)
     {
         SetTradeDetailMessages(_currentTradeRow);
     }
 }
Esempio n. 2
0
        private void xtraTabCtl_Map_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            switch (xtraTabCtl_Map.SelectedTabPageIndex)
            {
            case 0:
                _currentMapCtl                    = mapCtl_Station;
                toolBar_Map2D.Visible             = true;
                dockPanel_LayerControl.Visible    = true;
                treeList_StationLayer.Visible     = true;
                treeList_SiteLayer.Visible        = false;
                barCheckItem_LayerControl.Enabled = true;
                barCheckItem_QueryResult.Enabled  = true;
                break;

            case 1:
                _currentMapCtl                    = mapCtl_Site;
                toolBar_Map2D.Visible             = true;
                dockPanel_LayerControl.Visible    = true;
                treeList_StationLayer.Visible     = false;
                treeList_SiteLayer.Visible        = true;
                barCheckItem_LayerControl.Enabled = true;
                barCheckItem_QueryResult.Enabled  = true;
                break;

            case 2:
                toolBar_Map2D.Visible             = false;
                dockPanel_LayerControl.Visible    = false;
                dockPanel_QueryResult.Visible     = false;
                barCheckItem_LayerControl.Enabled = false;
                barCheckItem_QueryResult.Enabled  = false;
                break;
            }
        }
Esempio n. 3
0
        //-----------------------------------------------------------------------------------------------------------------------------------------//

        private void tabMain_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            //if (tabMain.SelectedTabPage == page03)
            //{
            //    if (page03.Controls.Count == 0)
            //    {
            //        // Suspend
            //        this.SuspendLayout();

            //        // Create Admin Page
            //        page03.Controls.Add(new FrmPage03());

            //        // Resume
            //        this.ResumeLayout();
            //    }
            //}

            //else if (tabMain.SelectedTabPage == page01)
            //{
            //    if (page01.Controls.Count == 0)
            //    {
            //        // Suspend
            //        this.SuspendLayout();

            //        // Create Admin Page
            //        page01.Controls.Add(new FrmPage01());

            //        // Resume
            //        this.ResumeLayout();
            //    }
            //}
        }
Esempio n. 4
0
        private void xtraTabCategorias_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            switch (e.Page.TabControl.SelectedTabPageIndex)
            {
            case 1:    //sandwich
                sql = "SELECT Producto.ProductoId, Producto.Imagen, Producto.Nombre, Producto.Descripcion, Producto.Tipo, " +
                      "Categoria.Tipo AS [Categoria], Producto.Tamano AS Tamaño, Producto.PrecioVenta AS [Precio] From Producto, Categoria " +
                      "WHERE Producto.CategoriaId=Categoria.CategoriaId AND Producto.CategoriaId=4 AND Producto.Mostrar = 'True'";
                gridProducto        = new GridProductos(sql);
                gridProducto.Sales += new GridProductos.SalesHandler(gridProducto_Sales);
                gridProducto.Dock   = DockStyle.Fill;
                e.Page.Controls.Add(gridProducto);
                break;

            case 2:
                sql = "SELECT Producto.ProductoId, Producto.Imagen, Producto.Nombre, Producto.Descripcion, Producto.Tipo, " +
                      "Categoria.Tipo AS [Categoria], Producto.Tamano AS Tamaño, Producto.PrecioVenta AS [Precio] From Producto, Categoria " +
                      "WHERE Producto.CategoriaId=Categoria.CategoriaId AND Producto.Tipo='Frio' AND Producto.Mostrar = 'True'";
                gridProducto        = new GridProductos(sql);
                gridProducto.Sales += new GridProductos.SalesHandler(gridProducto_Sales);
                gridProducto.Dock   = DockStyle.Fill;
                e.Page.Controls.Add(gridProducto);
                break;

            case 3:
                sql = "SELECT Producto.ProductoId, Producto.Imagen, Producto.Nombre, Producto.Descripcion, Producto.Tipo, " +
                      "Categoria.Tipo AS [Categoria], Producto.Tamano AS Tamaño, Producto.PrecioVenta AS [Precio] From Producto, Categoria " +
                      "WHERE Producto.CategoriaId=Categoria.CategoriaId AND Producto.Tipo='Caliente' AND Producto.Mostrar = 'True'";
                gridProducto        = new GridProductos(sql);
                gridProducto.Sales += new GridProductos.SalesHandler(gridProducto_Sales);
                gridProducto.Dock   = DockStyle.Fill;
                e.Page.Controls.Add(gridProducto);
                break;

            case 4:
                sql = "SELECT Producto.ProductoId, Producto.Imagen, Producto.Nombre, Producto.Descripcion, Producto.Tipo, " +
                      "Categoria.Tipo AS [Categoria], Producto.Tamano AS Tamaño, Producto.PrecioVenta AS [Precio] From Producto, Categoria " +
                      "WHERE Producto.CategoriaId=Categoria.CategoriaId AND Producto.CategoriaId=5 AND Producto.Mostrar = 'True'";
                gridProducto        = new GridProductos(sql);
                gridProducto.Sales += new GridProductos.SalesHandler(gridProducto_Sales);
                gridProducto.Dock   = DockStyle.Fill;
                e.Page.Controls.Add(gridProducto);
                break;

            case 5:
                sql = "SELECT Producto.ProductoId, Producto.Imagen, Producto.Nombre, Producto.Descripcion, Producto.Tipo, " +
                      "Categoria.Tipo AS [Categoria], Producto.Tamano AS Tamaño, Producto.PrecioVenta AS [Precio] From Producto, Categoria " +
                      "WHERE Producto.CategoriaId=Categoria.CategoriaId AND Producto.CategoriaId=6 AND Producto.Mostrar= 'True'";
                gridProducto        = new GridProductos(sql);
                gridProducto.Sales += new GridProductos.SalesHandler(gridProducto_Sales);
                gridProducto.Dock   = DockStyle.Fill;
                e.Page.Controls.Add(gridProducto);
                break;

            default:
                this.LoadDefaultView( );
                break;
            }
        }
Esempio n. 5
0
        private void Tabs_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            //Title.Focus();

            //if (Tabs.SelectedTabPage.Name == "ColorsTab" || Tabs.SelectedTabPage.Name == "ShapeTab" ||
            // Tabs.SelectedTabPage.Name == "AxesTab")
            //  ApplyButton.Visible = true;
            //else ApplyButton.Visible = false;
        }
Esempio n. 6
0
 private void tabControlSCD_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     //if (e.Page.Controls.Count == 0)
     //{
     //    MultiInputVitalSign multiInputVitalSignFrm = new MultiInputVitalSign();
     //    multiInputVitalSignFrm.Dock = DockStyle.Fill;
     //    multiInputVitalSignFrm.FormBorderStyle = FormBorderStyle.None;
     //    multiInputVitalSignFrm.Show();
     //    e.Page.Controls.Add(multiInputVitalSignFrm);
     //}
 }
 private void xtraTabControl_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     if (xtraTabControl.TabPages.Count > 0)
     {
         bandango.Caption = "Bạn đang ở: " + e.Page.Text;
     }
     else
     {
         bandango.Caption = "Bạn đang ở: Home";
     }
 }
Esempio n. 8
0
 void tabPageControl_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     if (this.tabPageControl.TabPages.Count == 1)
     {
         //this.tabPageControl.ClosePageButtonShowMode = ClosePageButtonShowMode.Default;
     }
     if (e.Page != null)
     {
         //this.mainWebBrowser = ((TabPageWithWebBrowser)(e.Page)).WebBrowser1;
     }
 }
Esempio n. 9
0
 private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     if (xtraTabControl1.SelectedTabPage == xtraTabPageArea)
     {
         btnArea.BackColor = Color.Gainsboro;
         btnZone.BackColor = Color.White;
     }
     if (xtraTabControl1.SelectedTabPage == xtraTabPageZone)
     {
         btnZone.BackColor = Color.Gainsboro;
         btnArea.BackColor = Color.White;
     }
 }
Esempio n. 10
0
 private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     if (xtraTabControl1.SelectedTabPage == xtraTabPageMain)
     {
         btnMainBank.BackColor = Color.White;
         btnBank.BackColor     = Color.Gainsboro;
     }
     if (xtraTabControl1.SelectedTabPage == xtraTabPageBank)
     {
         btnBank.BackColor     = Color.White;
         btnMainBank.BackColor = Color.Gainsboro;
     }
 }
Esempio n. 11
0
 private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     labTable.Empty();
     if (xtraTabControl1.SelectedTabPage != null)
     {
         foreach (var item in zyMixSamples.LabTable)
         {
             if (item.CheckGroupName == xtraTabControl1.SelectedTabPage.Text)
             {
                 labTable.Add(item);
             }
         }
     }
 }
Esempio n. 12
0
        private void tabSubControl_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            if (tabMedicalHistory_Sub.SelectedTabPage.Name == "tabSocialHistory")
            {
                CommonViewsActions.ShowUserControl(ref _pemr_SocialHistory, tabSocialHistory);
                if (_pemr_SocialHistory != null)
                {
                    _pemr_SocialHistory.Initialize();
                }
            }

            if (tabMedicalHistory_Sub.SelectedTabPage.Name == "tabGeneralHistory")
            {
                CommonViewsActions.ShowUserControl(ref _medicationHistory, tabMedicalHistory);
                if (_medicationHistory != null)
                {
                    _medicationHistory.Initialize();
                }
            }
        }
Esempio n. 13
0
/// <summary>
/// if going to Data Preview tab start data display as needed
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

        private void Tabs_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            if (Tabs.SelectedTabPageIndex == 1)
            {
                SyncCMtWithColGrid();
                SyncAMtWithCMt();
                if (!IsValidDefinition() || !AllowDataViewing())
                {
                    Tabs.SelectedTabPageIndex = 0;                     // back to col def tab
                    return;
                }

                if (!DataFormatterOpen || ColumnsModified)
                {
                    OpenDataFormatter();
                }
                DisplayDataTabSelected = true;
            }

            else
            {
                DisplayDataTabSelected = false;
            }
        }
Esempio n. 14
0
 private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     ReadModelFileName((ModelType)xtraTabControl1.SelectedTabPageIndex);
 }
Esempio n. 15
0
 private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     CreateToolBar();
 }
Esempio n. 16
0
 private void xtraTabControlMain_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     CheckButtonState(e.Page);
 }
Esempio n. 17
0
 protected virtual void UserSelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     RaiseEvent(sender, "SelectedPageChanged", e);
 }
Esempio n. 18
0
 private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
 {
     XtraTabControl tab  = sender as XtraTabControl;
     string         Name = tab.SelectedTabPage.Text;
 }
Esempio n. 19
0
        /// <summary>
        /// tab页切换事件
        /// edit by Yanqiao.Cai 2012-11-07
        /// add try ... catch
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            try
            {
                if (xtraTabControl1.SelectedTabPage == null)
                {
                    return;                                          //xll 添加
                }
                if (xtraTabControl1.SelectedTabPage.Name == "tabPageDiag")
                {
                    if (m_UCEditDiagnosis == null)
                    {
                        m_UCEditDiagnosis = new UCEditDiagnosis(m_app);
                        tabPageDiag.Controls.Add(m_UCEditDiagnosis);
                        m_UCEditDiagnosis.Dock = DockStyle.Fill;
                    }
                }
                else if (xtraTabControl1.SelectedTabPage.Name == "tabPageDiagChinese")
                {
                    if (m_UCEditDiagnosisOfChinese == null)
                    {
                        m_UCEditDiagnosisOfChinese = new UCEditDiagnosisOfChinese(m_app);
                        tabPageDiagChinese.Controls.Add(m_UCEditDiagnosisOfChinese);
                        m_UCEditDiagnosisOfChinese.Dock = DockStyle.Fill;
                    }
                }
                else if (xtraTabControl1.SelectedTabPage.Name == "TabPageDeptDiag")
                {
                    if (m_UCEditDiagnosisToDept == null)
                    {
                        m_UCEditDiagnosisToDept = new UCEditDiagnosisToDept(m_app);
                        TabPageDeptDiag.Controls.Add(m_UCEditDiagnosisToDept);
                        m_UCEditDiagnosisToDept.Dock = DockStyle.Fill;
                    }
                }
                //点击复用项目
                else if (xtraTabControl1.SelectedTabPage.Name == "TabPageModel")
                {
                    if (m_UCEditModelFactory == null)
                    {
                        m_UCEditModelFactory = new UCEditModelFactory(m_app);
                        TabPageModel.Controls.Add(m_UCEditModelFactory);
                        m_UCEditModelFactory.Dock = DockStyle.Fill;
                    }
                }
                //诊断按钮事件
                else if (xtraTabControl1.SelectedTabPage.Name == "TabPageDiagButton")
                {
                    if (m_UCDiagnosisButton == null)
                    {
                        m_UCDiagnosisButton = new UCDiagnosisButton(m_app);
                        TabPageDiagButton.Controls.Add(m_UCDiagnosisButton);
                        m_UCDiagnosisButton.Dock = DockStyle.Fill;
                    }
                }

                //点击手术信息维护
                else if (xtraTabControl1.SelectedTabPage.Name == "XTOPERPAGE")
                {
                    if (m_UCEditOperInfo == null)
                    {
                        m_UCEditOperInfo = new UCEditOperInfo(m_app);
                        XTOPERPAGE.Controls.Add(m_UCEditOperInfo);
                        m_UCEditOperInfo.Dock = DockStyle.Fill;
                    }
                }
                //并发症维护
                else if (xtraTabControl1.SelectedTabPage.Name == "xtraTabPage3")
                {
                    if (m_UCEditComplications == null)
                    {
                        m_UCEditComplications = new UCEditComplications(m_app);
                        xtraTabPage3.Controls.Add(m_UCEditComplications);
                        m_UCEditComplications.Dock = DockStyle.Fill;
                    }
                }
                else
                {
                }
                xtraTabControl1.SelectedTabPage.Controls[0].Focus();
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
            }
        }