Beispiel #1
0
        // 荷载
        private void Tab3_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ComBridge.String2Double(ref curBridge.MainBeamFactor, MBeamFactorTB.Text);
                ComBridge.String2Double(ref curBridge.LiveLoadFactor, LiveLoadTB.Text);
                ComBridge.String2Double(ref curBridge.PlateUnitWeight, CPlateTB.Text, 1.0 / 9.8);
                ComBridge.String2Double(ref curBridge.AsphaltThick, LiQingTB.Text);
                ComBridge.String2Double(ref curBridge.CurbLengthWeight, HuLanTB.Text);
                ComBridge.String2Double(ref curBridge.WindPressure, WindTB.Text, 1 / 1000.0);
                ComBridge.String2Temp(ref curBridge.HeighTemp, ref curBridge.LowTemp, TempTB.Text);
                ComBridge.String2Temp(ref curBridge.DeltHeighTemp, ref curBridge.DeltLowTemp, DeltTemp.Text);

                RemoveExample(ref MBeamFactorTB);
                RemoveExample(ref CPlateTB);
                RemoveExample(ref LiveLoadTB);
                RemoveExample(ref LiveLoadTB);
                RemoveExample(ref LiQingTB);
                RemoveExample(ref HuLanTB);
                RemoveExample(ref WindTB);
                RemoveExample(ref TempTB);
                RemoveExample(ref DeltTemp);


                this.ShowMessageAsync("荷载输入成功.", "");
                IsInpC = true;
            }
            catch (Exception err)
            {
                MessageBox.Show(string.Format("{0} : 输入参数错误,请参考示例.", err.Message), "ERROR");
            }
        }
Beispiel #2
0
 // 整体布置
 private void Tab1_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         curBridge.ReadSpanList(SplistTB.Text);
         RemoveExample(ref SplistTB);
         ComBridge.String2Double(ref curBridge.Width, WidhtTB.Text, 1000.0);
         RemoveExample(ref WidhtTB);
         ComBridge.String2Double(ref curBridge.MBeamDist, MBeamDistTB.Text, 1000.0);
         RemoveExample(ref MBeamDistTB);
         ComBridge.String2Int(ref curBridge.NMBeam, MBeamNumTB.Text);
         RemoveExample(ref MBeamNumTB);
         ComBridge.String2Double(ref curBridge.HBeamDist, HBeamDistTB.Text, 1000.0);
         RemoveExample(ref HBeamDistTB);
         ComBridge.String2Enum(ref curBridge.CRank, ConcClass.Text);
         ComBridge.String2Enum(ref curBridge.MBeamSRank, MSteelClass.Text);
         ComBridge.String2Enum(ref curBridge.HBeamSRank, HSteelClass.Text);
         this.ShowMessageAsync("整体布置 输入成功.", "");
         IsInpA = true;
     }
     catch (Exception err)
     {
         MessageBox.Show(string.Format("{0} : 输入参数错误,请参考示例.", err.Message), "ERROR");
     }
 }
Beispiel #3
0
        // 断面布置
        private void Tab2_Click(object sender, RoutedEventArgs e)
        {
            if (!IsInpA)
            {
                MessageBox.Show(string.Format("请输入整体布置信息."), "ERROR");
                return;
            }

            curBridge.SectList = SectionList;
            var aa = from item in SplitList where item.Length <= 0 select item;


            if (SplitList.Sum(t => t.Length) != curBridge.Length / 1000)
            {
                MessageBox.Show(string.Format("截面布置与总长不符 : 请检查."), "ERROR");
                return;
            }

            else if (aa.Count() != 0)
            {
                MessageBox.Show(string.Format("划分节段长度不能小于0 : 请检查."), "ERROR");
                return;
            }
            else
            {
                curBridge.SectSplitList = SplitList;
            }

            try
            {
                ComBridge.String2Double(ref curBridge.PlateThick, ThickTB.Text, 1000.0);
                RemoveExample(ref ThickTB);



                this.ShowMessageAsync("断面布置 输入成功.", "");
                IsInpB = true;
            }
            catch (Exception err)
            {
                MessageBox.Show(string.Format("{0} : 输入参数错误,请参考示例.", err.Message), "ERROR");
            }
        }