busline.cs

来自「城市公交路线查询」· CS 代码 · 共 65 行

CS
65
字号
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using System.Collections;

namespace BYBUS
{
    class BusLine
    {
        private string lineName;
        public string payWay;
        // public string X_FB_C;
        public List<string> FStations;
        public List<string> BStations;

        public BusLine()
        {

            FStations = new List<string>();
            BStations = new List<string>();

        }

        public string LineName
        {
            set
            {
                lineName = value;
            }
            get
            {
                return lineName;
            }
        }
        public string PayWay
        {
            set
            {
                payWay = value;
            }
            get
            {
                return payWay;
            }
        }
        public int FStationCount
        {
            get
            { return this.FStations.Count; }
        }
        public int BStationCount
        {
            get
            {
                return this.BStations.Count;
            }
        }

    }

    
  
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?