Ejemplo n.º 1
0
        private void AddModelInitFrame()
        {
            this.Text = "添加线道信息";
            List <DrawItemName> noSelectDINameLst = GetNoSelectedDINames();

            FillDrawItemListBox(noSelectDINameLst, this.lb_WaitSelect);
            ComboDicOper.CreateBindSource(new LineRoadStyleDic(), LineRoadStyle.StandardLineRoad.ToString(), this.cb_LineRoadStyle);
            ComboDicOper.CreateBindSource(new CeWangStyleDic(), CeWangStyleEnum.None.ToString(), this.cb_CeWangStyle);
            ComboDicOper.CreateBindSource(new LineLeftKindDic(), LineLeftKind.enline.ToString(), this.cb_leftline);
        }
Ejemplo n.º 2
0
        private void EditModelInitFrame()
        {
            LineRoadDesignClass lrDesign = LineRoadDesign.GetLineRoadDesignStrucById(currLineRoadId);

            if (null == lrDesign)
            {
                return;
            }
            this.Text = "修改线道信息";
            ComboDicOper.CreateBindSource(new LineRoadStyleDic(), lrDesign.LineRoadStyle.ToString(), this.cb_LineRoadStyle);
            ComboDicOper.CreateBindSource(new CeWangStyleDic(), CeWangStyleEnum.None.ToString(), this.cb_CeWangStyle);
            //1,测网设计;
            if (lrDesign.Cewang.ifAdd)
            {
                LineRoadCeWang tmpcewang = lrDesign.Cewang;
                this.rb_CeWangYes.Checked  = true;
                this.chb_cWHeng.Checked    = tmpcewang.ifHeng;
                this.chb_cwZong.Checked    = tmpcewang.ifZong;
                this.tb_CeWangFixLen.Text  = tmpcewang.cewangfixlen.ToString();
                this.tb_CeWangSepNum.Text  = tmpcewang.cewangsepnum.ToString();
                this.tb_CWDuiShuMin.Text   = tmpcewang.duishuminvalue.ToString();
                this.tb_CWDuiShuParam.Text = tmpcewang.duishuParam.ToString();
                ComboDicOper.CreateBindSource(new CeWangStyleDic(), tmpcewang.cewangstyle.ToString(), this.cb_CeWangStyle);
            }
            else
            {
                this.rb_CeWangNo.Checked = true;
            }

            //2,线道样式
            this.tb_LineGroupWidth.Text      = lrDesign.LineRoadWidth.ToString();
            this.tb_LineRoadName.Text        = lrDesign.LineRoadName.ToString();
            this.chb_ifLeftSecondKD.Checked  = lrDesign.IfLeftSecondKD;
            this.chb_ifRightSecondKD.Checked = lrDesign.IfRightSecondKD;
            this.chb_ifZhengMiLine.Checked   = lrDesign.IfzhengMiLine;
            this.tb_titleStartHeight.Text    = lrDesign.LineroadTitleHeight.ToString();


            //3,线道头左侧线

            this.chk_IfDrawTitleLeft.Checked = lrDesign.TitleLeftFrameLineChecked;
            ComboDicOper.CreateBindSource(new LineLeftKindDic(), lrDesign.LeftLineStyle.ToString(), this.cb_leftline);


            this.tb_leftlineLength.Text = lrDesign.LeftLineLength.ToString();

            //4,线道所包含的绘图项
            List <DrawItemName> noSelectDINameLst = GetNoSelectedDINames();

            FillDrawItemListBox(noSelectDINameLst, this.lb_WaitSelect);

            List <DrawItemName> lrDIS = lrDesign.Drawingitems;

            FillDrawItemListBox(lrDIS, this.lb_selected);
        }