Пример #1
0
 public InsertSlidesFromFileMenuItem(DeckTraversalModel traversal, PresenterModel model)
     : base(Strings.InsertSlidesFromDeck)
 {
     this.deck_               = traversal.Deck;
     this.deck_traversal_     = traversal;
     this.m_WhereTheEntriesGo = traversal.Deck.TableOfContents.Entries;
     this.m_Model             = model;
 }
Пример #2
0
 public RemoveSlideMenuItem(DeckTraversalModel traversal, PresenterModel model)
     : base(Strings.DeleteSlide)
 {
     this.m_Deck = traversal.Deck;
     this.m_WhereTheEntriesGo = traversal.Deck.TableOfContents.Entries;
     traversal_   = traversal;
     this.m_Model = model;
 }
Пример #3
0
 public DuplicateSlideMenuItem(DeckModel deck, TableOfContentsModel.EntryCollection bucket, DeckTraversalModel traversal, PresenterModel model)
     : base(Strings.DuplicateSlide)
 {
     this.m_Deck = deck;
     this.m_WhereTheEntriesGo = bucket;
     this.traversal_          = traversal;
     this.m_Model             = model;
     // TODO: Disable this menu item if the deck is immutable (requires defining what sorts of decks are mutable or not).
 }
Пример #4
0
 public PublicSlideMenuItem(DeckModel deck, TableOfContentsModel.EntryCollection bucket, DeckTraversalModel traversal, PresenterModel model)
     : base(Strings.CopyToPublic)
 {
     this.m_Deck = deck;
     this.m_WhereTheEntriesGo = bucket;
     this.traversal_          = traversal;
     this.m_Model             = model;
     if ((deck.Disposition & DeckDisposition.StudentSubmission) == 0)          // Only enable for student submissions
     {
         this.Enabled = false;
     }
 }