コード例 #1
0
ファイル: Stove.cs プロジェクト: GorovaIrina/progect_gorova
 public Stove(string name, bool state, Burner topLeftBurner, Burner topRightBurner, Burner buttomLeftBurner,
     Burner buttomRightBurner, Oven oven)
     : base(name, state)
 {
     this.topLeftBurner = topLeftBurner;
     this.topRightBurner = topRightBurner;
     this.buttomLeftBurner = buttomLeftBurner;
     this.buttomRightBurner = buttomRightBurner;
     this.oven = oven;
 }
コード例 #2
0
 public ObjEquip()
 {
     this.eq = new Dictionary<int,Equipment>();
     eq.Add(1, new Heating("котел", false, 0, EnumClimatRegime.summer, 0, 40));
     eq.Add(2, new Split("кондиционер", false, 0, EnumClimatRegime.summer, 0, 40));
     eq.Add(3, new Light("лампа", false));
     Oven o1 = new Oven("духовка", false, EnumRegimeOven.regimNul, 0);
     Burner b1 = new Burner("верхняя левая комфорка", false, EnumeRegimeMinMax.Min);
     Burner b2 = new Burner("верхняя правая комфорка", false, EnumeRegimeMinMax.Min);
     Burner b3 = new Burner("нижняя левая комфорка", false, EnumeRegimeMinMax.Min);
     Burner b4 = new Burner("нижняя правая комфорка", false, EnumeRegimeMinMax.Min);
     eq.Add(4, new Stove("плита", false, new Burner(), new Burner(),new Burner(),new Burner(), new Oven()));
     eq.Add(5, new KitchenHood("вытяжка", false, EnumeRegimeMinMax.Min));
 }