Esempio n. 1
0
 void DeckRoomController_DeckEditorRequest(DeckEditorRequestType requestType)
 {
     var deckEditor = new DeckEditorModel(logicStarter.ServicesProvider,
     logicStarter.GameItem, requestType == DeckEditorRequestType.New ? null : deckRoom.SelectedDeck.Value);
       var deckEditorView = logicStarter.ViewFactory.CreateDeckEditorView();
       var deckEditorController = new DeckEditorController(deckEditor, deckEditorView, logicStarter.ServicesProvider);
       deckEditorView.ShowModal();
 }
 public ClearListCommand(DeckEditorModel deckEditor)
 {
     this.deckEditor = deckEditor;
 }
Esempio n. 3
0
 public SaveCommand(DeckEditorModel deckEditor)
 {
     this.deckEditor = deckEditor;
 }
 public MoveCardCommand(DeckEditorModel deckEditor)
 {
     this.deckEditor = deckEditor;
 }
Esempio n. 5
0
 public void ShowDeckEditor()
 {
     DeckItem deck = null;
       do
       {
     DeckRoom deckRoom = new DeckRoom(this);
     deck = deckRoom.Run();
     if(deck != null)
     {
       var deckEditor = new DeckEditorModel(servicesProvider, gameItem, deck);
       var deckEditorView = viewFactory.CreateDeckEditorView();
       var deckEditorController = new DeckEditorController(deckEditor, deckEditorView, servicesProvider);
       deckEditorView.ShowModal();
     }
       } while(deck != null);
 }