Пример #1
0
        static void Main(string[] args)
        {
            WordsBank   bank = new WordsBank();
            MainContext main = new MainContext(bank);

            ConsoleHelper.WriteLine($"All started, type <{Styles.Command}>\"help\"</color> to see commands in the current context", Styles.Information);
            Context.LoadContext <MainContext>(main);
        }
Пример #2
0
 public MainContext(WordsBank wordsBank)
 {
     WordsBank = wordsBank;
 }