public void AddNewPage(object obj)
        {
            Base.Page newPage = new Base.Page();
            LayoutWindow           = new Views.Layout(this);
            newPage.SiteId         = SelectedSite.SiteId;
            newPage.XamlPageString = Settings.XamlToSring((StackPanel)LayoutWindow.FindName("PageLayout"));
            AddWindow add = new AddWindow(newPage, Consumer, this);

            add.Show();
        }
 public AddWindow(Base.Page page, AdminAPIConsumer consumer, MainWindowViewModel mainWindowVM) : this(consumer, mainWindowVM)
 {
     this.page = page;
     this.type = 1;
     InitializeComponent();
 }