Exemple #1
0
        private static void DisplayMenu()
        {
            Console.WriteLine("What-do you want to do ?");
            var isP2PNetworkRunning = _nodeLauncher.IsP2PNetworkRunning();

            if (isP2PNetworkRunning)
            {
                DisplayConnected();
            }
            else
            {
                DisplayDisconnected();
            }
        }
Exemple #2
0
        public static void DisplayFullNodeMenu()
        {
            MenuHelper.DisplayMenuItem("What-do you want to do ?");
            var isP2PNetworkRunning = _nodeLauncher.IsP2PNetworkRunning();

            if (isP2PNetworkRunning)
            {
                DisplayP2PNetworkRunningMenu();
            }
            else
            {
                DisplayP2PNetworkNotRunningMenu();
            }
        }