示例#1
0
        private static void Main(string[] args)
        {
            ConsoleMenu welcome = new ConsoleMenu(), mainMenu = new ConsoleMenu(), converter = new ConsoleMenu();

            var pc = new PastelConsole(ColourPalette.MarineFields);

            welcome.SetDetails(new[] { "Welcome" }, new Action[] { () => WishWelcome(pc) },
                               new[] { mainMenu });
            mainMenu.SetDetails(new[] { "Convert Panopto", "Done" }, new Action[] { () => CaptionConverter.PanoptoRun(pc), null },
                                new[] { mainMenu, new ConsoleMenu() });


            pc.SetStartingMenu(welcome);
            pc.Run();
        }
示例#2
0
        internal static void PanoptoRun(PastelConsole pc)
        {
            pc.WriteQuestion("Please insert the time stamps (Contents bar) followed by 'END SLIDES':");
            var slide = GetSlides();

            pc.WriteQuestion("Please insert the captions (Captions bar) followed by 'END CAPTIONS'");
            var    captions = GetCaptions();
            String doc      = DocumentMaker.FormattedDocumment(slide, captions);

            pc.WriteEmpty();
            pc.WriteStatement("Below is the transcript for the slides:\n");
            pc.WriteLine("START\n");
            pc.WriteLine(doc);
            pc.WriteLine("\nEnd");
        }
示例#3
0
 private static void WishWelcome(PastelConsole pc)
 {
     pc.FormatWriteLine("{-3} - {-2}", "Welcome to Transcribr",
                        "A tool for converting different auto-captioned slides to notes.");
     pc.WriteEmpty();
 }