Пример #1
0
        internal static void ShowInfo()
        {
            Console.Clear();

            /*
             * Config
             */

            NConsole.WriteInfo(SearchConfig.Config);


            /*
             * Runtime info
             */


            NConsole.WriteInfo("Application folder: {0}", AppFolder);
            NConsole.WriteInfo("Executable location: {0}", ExeLocation);
            NConsole.WriteInfo("Context menu integrated: {0}", Integration.IsContextMenuAdded);
            NConsole.WriteInfo("In path: {0}\n", IsAppFolderInPath);


            /*
             * Version info
             */

            var versionsInfo = UpdateInfo.CheckForUpdates();

            NConsole.WriteInfo("Current version: {0}", versionsInfo.Current);
            NConsole.WriteInfo("Latest version: {0}", versionsInfo.Latest.Version);
            NConsole.WriteInfo("Version status: {0}", versionsInfo.Status);

            Console.WriteLine();

            /*
             * Author info
             */

            NConsole.WriteInfo("Repo: {0}", Repo);
            NConsole.WriteInfo("Readme: {0}", Readme);
            NConsole.WriteInfo("Author: {0}", Author);
        }