public void RemoveRouter()
        {
            Router router = MainNetwork.GetRouter(mainConsole.ChooseRouter());

            MainNetwork.routers.Remove(router);
            router = null;
        }
        public void SendMessage()
        {
            string routerOne = mainConsole.ChooseRouter();
            string routerTwo = mainConsole.ChooseRouter();

            Console.WriteLine("Type the message you want to send: ");
            string text = Console.ReadLine();

            MainNetwork.GetRouter(routerOne).SendMessage(new Message(routerOne, routerTwo, text));
        }
        public void PrintRoutingTable()
        {
            Router router = MainNetwork.GetRouter(mainConsole.ChooseRouter());

            foreach (var a in router.pathes.Values)
            {
                Console.WriteLine("Source: " + router.Id + "  Destination: " + a.destination + "  Hops Count: " + a.hopsAmount + "  Next Router: " + a.nextRouter);
            }
            Console.WriteLine();
        }