static void Main(string[] args) { ViewLauncher g = new ViewLauncher(); g.launchView(); //testBoradPrint(); }
public BookViewModel(BookModel bookModel, ViewLauncher viewLauncher) { _model = bookModel; _viewLauncher = viewLauncher; _model.BookListChanged += (o, e) => ReloadBooks(); ReloadBooks(); }
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); }