Esempio n. 1
0
 public void BeginManage()
 {
     leftDisplayer.Display(leftContainer);
     rightDisplayer.Display(rightContainer);
     while (true)
     {
         ctr.Check();
     }
 }
Esempio n. 2
0
        public void Move(List <Furniture> furnitures)
        {
            foreach (var furniture in furnitures)
            {
                var furnitureName  = furniture.Name;
                var beforeLocation = furniture.Location.ToString();
                furniture.Move(random.Next(1, 10), random.Next(1, 10));
                var afterLocation = furniture.Location.ToString();

                var content = String.Format($"{furnitureName}: {beforeLocation} -> {afterLocation}");
                viewer.Display(content);
            }
        }
Esempio n. 3
0
 private void displayActionPointsTreeButton_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Дерево поиска по количеству очков действий:");
     _actionPointsTree.Display();
 }
Esempio n. 4
0
 private void displayHealthTreeButton_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Дерево поиска по количеству здоровья:");
     _healthTree.Display();
 }
Esempio n. 5
0
 private void displayClanTreeButton_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Дерево поиска по имени клана:");
     _clanTree.Display();
 }
Esempio n. 6
0
 private void displayNameTreeButton_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Дерево поиска по имени:");
     _nameTree.Display();
 }
Esempio n. 7
0
 public void Display()
 {
     _displayMethod.Display(_temperature, _humidity, _pressure);
 }
Esempio n. 8
0
 static void DisplayYourself(IDisplayable myObject)
 {
     //Any objected passed into this method must have a Display() method implemented.
     myObject.Display();
 }