Bloom.Edit.EditingModel.SetLayout C# (CSharp) Method

SetLayout() public method

public SetLayout ( Layout layout ) : void
layout Bloom.Book.Layout
return void
        public void SetLayout(Layout layout)
        {
            SaveNow();
            CurrentBook.SetLayout(layout);
            CurrentBook.PrepareForEditing();
            _view.UpdateSingleDisplayedPage(_pageSelection.CurrentSelection);

            _view.UpdatePageList(true);//counting on this to redo the thumbnails
        }

Usage Example

示例#1
0
        void OnPaperSizeAndOrientationMenuClick(object sender, EventArgs e)
        {
            var item = (ToolStripMenuItem)sender;

            _model.SetLayout((Layout)item.Tag);
            UpdateDisplay();
        }