Пример #1
0
        /// <summary>
        ///     选择工作面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnChooseWF_Click(object sender, EventArgs e)
        {
            //巷道选择窗体
            SelectWorkingFaceDlg wfChoose = null;

            wfChoose = new SelectWorkingFaceDlg();
            //第一次选择巷道
            //if (workingFace == null)
            //{
            //    wfChoose = new SelectWorkingFaceDlg(WorkingfaceTypeEnum.HC);
            //}
            ////非第一次选择巷道
            //else
            //{
            //    wfChoose = new SelectWorkingFaceDlg();
            //}

            //巷道选择完毕
            if (DialogResult.OK == wfChoose.ShowDialog())
            {
                //巷道选择按钮Text改变
                btnChooseWF.Text = wfChoose.SelectedWorkingFace.WorkingFaceName;
                //实体赋值
                _workingFace = wfChoose.SelectedWorkingFace;
            }
        }
Пример #2
0
        /// <summary>
        ///     掘进面选择
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnChooseWorkFace_Click(object sender, EventArgs e)
        {
            //工作面选择窗体
            var selectWF = new SelectWorkingFaceDlg();

            //巷道选择完毕
            if (DialogResult.OK == selectWF.ShowDialog())
            {
                //巷道选择按钮Text改变
                btnChooseWorkFace.Text = selectWF.SelectedWorkingFace.WorkingFaceName;
                //实体赋值
                jjWorkFaceEntity = selectWF.SelectedWorkingFace;
            }
        }