Exemplo n.º 1
0
        private void tsmiEditWell_Click(object sender, EventArgs e)
        {
            TreeNode currentNode = tvSectionEdit.SelectedNode;

            if (currentNode != null)
            {
                setUpIDByTN(currentNode);
                float   fTopShow   = 0;
                XmlNode selectWell = cXmlDocSectionGeo.selectNodeByID(this.filePathSectionCss, this.sJH);
                if (selectWell != null)
                {
                    fTopShow = float.Parse(selectWell["fShowTop"].InnerText);
                }
                FormSectionWell editWell = new FormSectionWell(this.filePathOper, fTopShow);
                if (editWell.ShowDialog() == DialogResult.OK)
                {
                    updateTVandList();
                    makeSVGmap();
                }
            }
        }
Exemplo n.º 2
0
        private void 查看剖面ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sSelectJH = sCurrentID;
            ItemDicLayerDataStatic curItem = listLayersDataCurrentLayerStatic.SingleOrDefault(p => p.sJH == sSelectJH && p.sXCM == sSelectLayer);
            float fTop = 0;
            float fBot = 5000;

            if (curItem != null)
            {
                fTop = curItem.fDS1_md;
                fBot = curItem.fDS2_md;
            }
            string filePathOper = Path.Combine(cProjectManager.dirPathWellDir, sSelectJH, sSelectJH + cProjectManager.fileExtensionSectionWell);

            if (File.Exists(filePathOper))
            {
                FormSectionWell newSectionWeb = new FormSectionWell(filePathOper, fTop, fBot);
                newSectionWeb.WindowState = FormWindowState.Normal;
                newSectionWeb.Size        = new Size(300, 300);
                //newSectionWeb.StartPosition = FormStartPosition.Manual;
                newSectionWeb.Location = pXY.ToPoint();
                newSectionWeb.setViewMode();
                newSectionWeb.FormBorderStyle = FormBorderStyle.SizableToolWindow;
                newSectionWeb.TopLevel        = true;
                newSectionWeb.wellPanelMain.webBrowserHead.Visible       = false;
                newSectionWeb.wellPanelMain.lblCrossV.Visible            = false;
                newSectionWeb.wellPanelMain.lblCrossH.Visible            = false;
                newSectionWeb.wellPanelMain.lblmarker.Visible            = false;
                newSectionWeb.wellPanelMain.statusStripWellPanel.Visible = false;
                newSectionWeb.Show();
            }
            else
            {
                MessageBox.Show("单井综合图不存在。");
            }
        }