예제 #1
0
        private static void OpenMailClient(MailBox mb)
        {
            Console.CursorVisible = false;
            Console.Clear();
            WriteAnimation.PrintWithBoth("Loading", 5, PlotConfig.Mail_ASCII, ConsoleColor.Red);
            Thread.Sleep(2000);
            Console.Clear();
            var currentTPos = 0; //目前光标相对第1封邮件的位置,默认置于第1封邮件处

            while (true)
            {
                void ChangeFocus()
                {
                    if (currentTPos == mb.EMails.Count + 1)
                    {
                        Console.Write(Mail_TextResource.Exit);
                    }
                    else if (currentTPos == mb.EMails.Count)
                    {
                        Console.Write(Mail_TextResource.WriteMail);
                    }
                    else
                    {
                        ShowMail(mb.EMails[currentTPos]);
                    }
                }
예제 #2
0
        private static void IntroTutorial()
        {
            // 1. 先走几个进度条
            Console.ResetColor();
            WriteAnimation.PrintBarOnly(WAF_TextResource.Wafc_Main_Sys, 5);
            Thread.Sleep(500);
            Console.WriteLine();
            WriteAnimation.PrintBarOnly(WAF_TextResource.Wafc_Package_Sender_Sys, 5);
            Thread.Sleep(500);
            Console.WriteLine();
            WriteAnimation.PrintBarOnly(WAF_TextResource.Wafc_Flow_Analyser_Sys, 5);
            Thread.Sleep(500);
            Console.WriteLine();
            WriteAnimation.PrintBarOnly(WAF_TextResource.Wafc_Pseudo_Gui_Sys, 5);
            Thread.Sleep(500);
            Console.WriteLine();

            // 2.用帮助文档形式来介绍系统吧!
            Console.Clear();