Пример #1
0
        static void Main(string[] args)
        {
            ViewLauncher g = new ViewLauncher();

            g.launchView();
            //testBoradPrint();
        }
Пример #2
0
 public BookViewModel(BookModel bookModel, ViewLauncher viewLauncher)
 {
     _model                  = bookModel;
     _viewLauncher           = viewLauncher;
     _model.BookListChanged += (o, e) => ReloadBooks();
     ReloadBooks();
 }
Пример #3
0
        public MainWindowViewModel(ViewLauncher viewLauncher)
        {
            _viewLauncher = viewLauncher;

            StartCommand     = new DelegateCommand(Start);
            SetPlayerCommand = new DelegateCommand <string>(SetPlayer);
            SetLevelCommand  = new DelegateCommand <string>(SetLevel);
            MoveLeftCommand  = new DelegateCommand(MoveLeft);
            MoveUpCommand    = new DelegateCommand(MoveUp);
            MoveRightCommand = new DelegateCommand(MoveRight);
            MoveDownCommand  = new DelegateCommand(MoveDown);
            AttackCommand    = new DelegateCommand(Attack);
        }