Beispiel #1
0
        private void tsmiIntervalStastics_Click(object sender, EventArgs e)
        {
            float fTopInfor = Math.Min(pDepth.X, pDepth.Y);
            float fBotInfor = Math.Max(pDepth.X, pDepth.Y);
            ItemTrackDataIntervalProperty itemDepth = new ItemTrackDataIntervalProperty(fTopInfor, fBotInfor);

            itemDepth.calTVD(curWell);
            makeSectionWell.calInterStastics(filePathTemple, itemDepth);
        }
        private void btnOK_Click(object sender, EventArgs e)
        {
            ItemTrackDataIntervalProperty item = new ItemTrackDataIntervalProperty();

            item.top = float.Parse(this.nTBXTopDepth.Text);
            item.bot = float.Parse(this.nTBXBotDepth.Text);
            item.calTVD(sJH);
            item.sProperty = cbbItemSelect.SelectedItem.ToString();
            item.sText     = this.cbbDirType.SelectedItem.ToString();
            if (strTrackType == TypeTrack.描述.ToString())
            {
                item.sProperty = this.cbbDirType.SelectedItem.ToString();
                item.sText     = cbbItemSelect.SelectedItem.ToString();
            }
            if (item.bot > item.top)
            {
                cXmlDocSectionWell.addDataItemIntervalProperty(filePathTemple, sIDTrack, item);
                cXmlDocSectionWell.sortSelectTrackItem(filePathTemple, sIDTrack);
            }
            else
            {
                MessageBox.Show("顶底深不正确。");
            }
        }