Esempio n. 1
0
        void xtraTabControl1_SelectedPageChanged(object sender, TabPageChangedEventArgs e) {
            if (e.Page == tqsbTab) {
                if (ucps_tqsb == null) {
                    ucps_tqsb = new UCPS_TQSB();
                    ucps_tqsb.Dock = DockStyle.Fill;

                    ucps_tqsb.ParentObj = rowData;
                    ucps_tqsb.HideList();
                    ucps_tqsb.Parent = tqsbTab;
                }
            } else if (e.Page == tqdlbhTab) {
                if (ucps_tqdlbh == null) {
                    ucps_tqdlbh = new UCPS_TQDLBH();
                    ucps_tqdlbh.Dock = DockStyle.Fill;

                    ucps_tqdlbh.ParentObj = rowData;
                    ucps_tqdlbh.HideList();
                    ucps_tqdlbh.Parent = tqdlbhTab;
                }
            } else if (e.Page == byqTab) {
                if (ucps_tqbyq == null) {
                    ucps_tqbyq = new UCPS_TQBYQ();
                    ucps_tqbyq.Dock = DockStyle.Fill;

                    ucps_tqbyq.ParentObj = rowData;
                    ucps_tqbyq.HideList();
                    ucps_tqbyq.Parent = byqTab;
                }
            }
        }
Esempio n. 2
0
        void xtraTabControl1_SelectedPageChanged(object sender, TabPageChangedEventArgs e) {
            if (e.Page == tqTab) {
                if (ucps_tq == null) {
                    ucps_tq = new UCPS_TQ();
                    ucps_tq.Dock = DockStyle.Fill;

                    ucps_tq.ParentObj = rowData;
                    ucps_tq.HideList();
                    ucps_tq.Parent = tqTab;
                }
            } else if (e.Page == kgTab) {
                if (ucps_kg == null) {
                    ucps_kg = new UCPS_KG();
                    ucps_kg.Dock = DockStyle.Fill;

                    ucps_kg.ParentObj = rowData;
                    ucps_kg.HideList();
                    ucps_kg.Parent = kgTab;
                }
            } else if (e.Page == byqTab) {
                if (ucps_tqbyq == null) {
                    ucps_tqbyq = new UCPS_TQBYQ();
                    ucps_tqbyq.Dock = DockStyle.Fill;

                    ucps_tqbyq.ParentGT = rowData;
                    ucps_tqbyq.HideList();
                    ucps_tqbyq.Parent = byqTab;
                }
            }
        }