Пример #1
0
        static void Main(string[] args)
        {
            MyCanvas.CreateNewButton(50, 40, 30, 20);
            MyCanvas.CreateNewButton(100, 90, 80, 70);
            MyCanvas.CreateNewButton(400, 500, 300, 350);

            if (MyCanvas.CheckIfAnyButtonIsOverLapping() == true)
            {
                Console.WriteLine("there is buttun over lapping");
            }

            MyCanvas.GetCurrentNumberOfButtons();
            MyCanvas.Print();
        }
Пример #2
0
        public static void Main(string[] args)
        {
            MyCanvas.CreateNewButton(8, 8, 12, 12);
            MyCanvas.CreateNewButton(7, 7, 16, 16);
            MyCanvas.CreateNewButton(9, 9, 21, 21);

            MyCanvas.MoveButton(0, 7, 99);

            if (MyCanvas.CheckIfAnyButtonIsOverLapping() == true)
            {
                Console.WriteLine("This button is over lapping");
            }

            MyCanvas.GetMaxNumberOfNumberOfButtons();

            MyCanvas.GetCurrentNumberOfButtons();



            MyCanvas.Print();
        }