示例#1
0
        private static void Main()
        {
            ProgramContext context = ProgramContext.Load(SettingsPath);

            if (context != null)
            {
                context.Welcome(clear: false);
            }
            else
            {
                context = ProgramContext.New();
                if (context != null)
                {
                    ProgramContext.Save(context, SettingsPath);
                    context.Welcome(clear: false);
                }
            }
            Console.ReadKey();
        }