Esempio n. 1
0
 // ------------------------------------------------------------------
 /// <summary>
 /// Adds a page.  This should be used when adding pages rather than
 /// though the Pages property so the page gets attached to the Model.
 /// The page name is set to "Page" plus the new number of pages.
 /// For example, if there are currently two pages, then "Page3" is 
 /// set as the new page name.
 /// </summary>
 /// <returns>IPage</returns>
 // ------------------------------------------------------------------
 public IPage AddPage() {
   string pageName = this.GetDefaultNewPageName();
   Page page = new Page(pageName, this);
   return AddPage(page);
 }
Esempio n. 2
0
    // ------------------------------------------------------------------
    /// <summary>
    /// Default constructor
    /// </summary>
    // ------------------------------------------------------------------
    public Model() {
      //here I'll have to work on the scene graph
      //this.mShapes = new CollectionBase<IShape>();
      //the default page

      //the page collection
      mPages = new CollectionBase<IPage>();
      Page p = new Page("Default Page", this);
      p.Ambience.PageColor = ArtPalette.DefaultPageColor;
      mPages.Add(p);

      Init();
    }