Пример #1
0
        private void btnSetWhole_Click(object sender, EventArgs e)
        {
            pTableMaxAndMinValueManagementForm form = new pTableMaxAndMinValueManagementForm();

            this.maxminform = form;
            form.mf         = this;
            form.Show();
        }
Пример #2
0
        //加入一个暂停方法,在暂停中调用该方法,通过将本来的timer1暂停,暂停后启用timer2刷新,如果井深超出数据库中的范围,就停止,一直刷新到有数据后重新开始timer1


        private void timer1_Tick(object sender, EventArgs e)
        {
            SQLServerWorkDataProvider.invoke_method = "随钻";
            #region    对部分静态类进行初始化
            DrawPointContainer.initiate();

            pTableContainer.initiate();
            #endregion

            DrawPointContainer.szf = this;

            if (DrawPointContainer.list != null)
            {
                for (int i = 0; i < DrawPointContainer.list.Count; i++)
                {
                    DrawPointContainer.list[i].Initiate();
                }
            }

            //suizuan//.Initiate();
            //绘图井,绘图框架等设计信息写入黑板区;

            SetFrameDesign();

            //根据lb_LineRoadDesign重新整理线道设计顺序;
            if (DrawCommonData.icount == 0)
            {
                SetLineRoadDesign();
            }

            //线道链表,线道框架即各个控制点数据等设计信息写入黑板区;
            FrameControlData.LineRoadControlLst = LineRoadOper.getLineRoadControlDataLst(LineRoadDesign.LineRoadDesginLst);

            WorkDataManage.WorkDataManage.BuildWorkDataHt();//获得绘图工作数据;将数据填充WorkDataManage类的WorkDataHt属性中;
            Entities.ClearAll();
            //绘图
            this.DrawLJJSPicture();

            if (this.maxminform != null)
            {
                pTableMaxAndMinValueManagementForm form = this.maxminform;

                form.tbMinJGL.Text  = DrawCommonData.curr_JGLMin.ToString();
                form.tbMinMseb.Text = DrawCommonData.curr_MsebMin.ToString();
                form.tbMinMseh.Text = DrawCommonData.curr_MsehMin.ToString();
                form.tbMinMsev.Text = DrawCommonData.curr_MsevMin.ToString();

                form.tbMaxJGL.Text  = DrawCommonData.curr_JGLMax.ToString();
                form.tbMaxMseb.Text = DrawCommonData.curr_MsebMax.ToString();
                form.tbMaxMseh.Text = DrawCommonData.curr_MsehMax.ToString();
                form.tbMaxMsev.Text = DrawCommonData.curr_MsevMax.ToString();
            }
        }