Exemple #1
0
 void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) {
     if (e.Page == xtraTabPage4) {
         if (ucps_jcky == null) {
             ucps_jcky = new UCPS_jcky();
             ucps_jcky.Dock = DockStyle.Fill;
             e.Page.Controls.Add(ucps_jcky);
             ucps_jcky.HideList();
         }
         ucps_jcky.ParentObj = mgt;
     } else if (e.Page == xtraTabPage5) {
         if (ucps_drq == null) {
             ucps_drq = new UCPS_GTSB_drq();
             ucps_drq.Dock = DockStyle.Fill;
             e.Page.Controls.Add(ucps_drq);
             ucps_drq.HideList();
         }
         ucps_drq.ParentObj = mgt;
     } else if (e.Page == xtraTabPage6) {
         if (ucps_bx == null) {
             ucps_bx = new UCPS_GTSB_bx();
             ucps_bx.Dock = DockStyle.Fill;
             e.Page.Controls.Add(ucps_bx);
             ucps_bx.HideList();
         }
         ucps_bx.ParentObj = mgt;
     }
 }
Exemple #2
0
 public void ShowDialog(string type,GMapMarker marker) {
     if (type == "jcky") {//交叉跨跃
         if (marker.Tag is sd_gt) {
             sd_gt gt = marker.Tag as sd_gt;
             Ebada.Scgl.Sbgl.UCsd_jcky jcky = new UCsd_jcky();
             jcky.ParentObj = gt;
             DevExpress.XtraEditors.XtraForm dlg = new DevExpress.XtraEditors.XtraForm();
             dlg.Controls.Add(jcky);
             jcky.Dock = DockStyle.Fill;
             jcky.HideList();
             dlg.Size = new System.Drawing.Size(800, 600);
             dlg.StartPosition = FormStartPosition.CenterScreen;
             dlg.Text = "交叉跨越-" + gt.gth;
             dlg.ShowDialog();
         } else {
             PS_gt gt = selectedMarker.Tag as PS_gt;
             Ebada.Scgl.Sbgl.UCPS_jcky jcky = new UCPS_jcky();
             jcky.ParentObj = gt;
             DevExpress.XtraEditors.XtraForm dlg = new DevExpress.XtraEditors.XtraForm();
             dlg.Controls.Add(jcky);
             jcky.Dock = DockStyle.Fill;
             jcky.HideList();
             dlg.Size = new System.Drawing.Size(800, 600);
             dlg.StartPosition = FormStartPosition.CenterScreen;
             dlg.Text = "交叉跨越-" + gt.gth;
             dlg.ShowDialog();
         }
     } else {
         MessageBox.Show("此功能正在开发中。。。");
     }
 }