• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: C#  

资源简介

 



   switch (aa)
            {
                case "香港":
                    float a;
                    a = float.Parse(textBox1.Text);
                    // textBox1.Text = a.ToString();
                    if (a <= 1)
                    {
                        label3.Text = "30";
                    }
                    else if (a > 1)
                    {
                        float b = a % 1;
                        float c = a - b;
                        if (b <= 0.5)
                        {
                            double res;
                            if (b == 0)
                            {

                                res = (c - 1) * 25 30;
                                label3.Text = res.ToString();
                            }
                            else
                            {
                                res = (c - 1) * 25 30 12.5;
                                label3.Text = res.ToString();
                            }

                        }
                        else if (b > 0.5)
                        {
                            double res;
                            res = c * 25 30;
                            label3.Text = res.ToString();
                        }
                    }

                    break;

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ex_2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            this.comboBox1.Items.AddRange(new object[] {
             “香港“ “台湾““澳门““崇明岛““江浙沪皖““外围一区““外围二区““外围三区““外围四区“});
            this.comboBox2.Items.AddRange(new object[] { “香港“ “新疆“ “西藏“ “山西“ “内蒙古“ “辽宁“ “吉林“ “黑龙江“ “宁夏“ “甘肃“ “青海“ “台湾“ “澳门“ “上海“ 
                “江苏“ “浙江“ “上海“ “安徽“ “山东“ “北京“ “天津“ “广东“ “福建“ “江西“ “湖南“
                “湖北“ “河南

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      14848  2014-09-10 09:37  ex 2\ex 2\bin\Debug\ex 2.exe

     文件      30208  2014-09-10 09:37  ex 2\ex 2\bin\Debug\ex 2.pdb

     文件      14328  2014-09-10 09:37  ex 2\ex 2\bin\Debug\ex 2.vshost.exe

     文件        490  2009-06-11 05:14  ex 2\ex 2\bin\Debug\ex 2.vshost.exe.manifest

     文件       3754  2014-09-09 14:39  ex 2\ex 2\ex 2.csproj

     文件      15598  2014-09-10 09:37  ex 2\ex 2\Form1.cs

     文件       7760  2014-09-10 09:37  ex 2\ex 2\Form1.Designer.cs

     文件       5814  2014-09-10 09:37  ex 2\ex 2\Form1.resx

     文件        415  2014-09-10 09:37  ex 2\ex 2\obj\Debug\ex 2.csproj.FileListAbsolute.txt

     文件        847  2014-09-10 09:37  ex 2\ex 2\obj\Debug\ex 2.csproj.GenerateResource.Cache

     文件      14848  2014-09-10 09:37  ex 2\ex 2\obj\Debug\ex 2.exe

     文件      30208  2014-09-10 09:37  ex 2\ex 2\obj\Debug\ex 2.pdb

     文件        180  2014-09-10 09:37  ex 2\ex 2\obj\Debug\ex_2.Form1.resources

     文件        180  2014-09-09 14:39  ex 2\ex 2\obj\Debug\ex_2.Properties.Resources.resources

     文件        485  2014-09-09 14:39  ex 2\ex 2\Program.cs

     文件       1358  2014-09-09 14:39  ex 2\ex 2\Properties\AssemblyInfo.cs

     文件       2858  2014-09-09 14:39  ex 2\ex 2\Properties\Resources.Designer.cs

     文件       5612  2014-09-09 14:39  ex 2\ex 2\Properties\Resources.resx

     文件       1089  2014-09-09 14:39  ex 2\ex 2\Properties\Settings.Designer.cs

     文件        249  2014-09-09 14:39  ex 2\ex 2\Properties\Settings.settings

     文件        902  2014-09-09 14:39  ex 2\ex 2.sln

    ..A..H.     14336  2014-09-10 09:37  ex 2\ex 2.suo

     目录          0  2014-09-09 14:39  ex 2\ex 2\obj\Debug\TempPE

     目录          0  2014-09-10 09:39  ex 2\ex 2\bin\Debug

     目录          0  2014-09-10 09:39  ex 2\ex 2\obj\Debug

     目录          0  2014-09-10 09:39  ex 2\ex 2\bin

     目录          0  2014-09-10 09:39  ex 2\ex 2\obj

     目录          0  2014-09-10 09:39  ex 2\ex 2\Properties

     目录          0  2014-09-10 09:39  ex 2\ex 2

     目录          0  2014-09-10 09:39  ex 2

............此处省略3个文件信息

评论

共有 条评论