/// <summary>
 /// 拷贝的构造函数。
 /// </summary>
 /// <param name="supplyCenter"><see cref="SupplyCenter"/>类型对象。</param>
 public SupplyCenter(SupplyCenter supplyCenter)
 {
     if (supplyCenter == null)
     {
         throw new ArgumentNullException("supplyCenter");
     }
     this.MaxWeight = supplyCenter.MaxWeight;
     this.NodeID = supplyCenter.NodeID;
     //this.ResourceValue = supplyCenter.ResourceValue;
     this.Type = supplyCenter.Type;
 }
Esempio n. 2
0
        public gmap()
        {
            InitializeComponent();

            supplyCenter = new SupplyCenter();
        }