Beispiel #1
0
        public IParameterItem Clone()
        {
            TotalInformation clon = new TotalInformation();

            clon.ItemName       = this.ItemName;
            clon.ItemAddress    = this.ItemAddress;
            clon.ItemPhonNumber = this.ItemPhonNumber;
            return(clon);
        }
Beispiel #2
0
        public void Copy(IParameterItem other)
        {
            TotalInformation tmp = other as TotalInformation;

            if (tmp != null)
            {
                this.ItemName       = tmp.ItemName;
                this.ItemAddress    = tmp.ItemAddress;
                this.ItemPhonNumber = tmp.ItemPhonNumber;
            }
        }
Beispiel #3
0
        public override void Create()
        {
            //公司
            TotalInformation fac = new TotalInformation();

            fac.ItemName       = "西安工业";
            fac.ItemAddress    = "西安市未央区";
            fac.ItemPhonNumber = 725300;
            this.Add(fac);
            //参数
            AddItem("食堂", true, 1000, 2000, 300);
            AddItem("宿舍", false, 0, 0, 0);
            AddItem("教室", false, -100, 2000, 30);
        }