public baseProduct(Form mainForm, productSaveClass psc) { _initialize(mainForm); foreach (pageMatFrameSaveClass content in psc.contents) { _loadPageMatFrame(content); //temp lines _currentPageMatFrame = _pagesMatsFrames[0]; _layoutArea.intitialPlacePageMatFrame(_currentPageMatFrame); //need to somehow load items without haveing to display them until the page is active _currentPageMatFrame.loadItems(content); } if (_pagesMatsFrames.Count > 0) { _currentPageMatFrame = _pagesMatsFrames[0]; _layoutArea.intitialPlacePageMatFrame(_currentPageMatFrame); _layoutArea.Refresh(); } }
private void _clearBaseDesignArea() { _pageMatFrame = null; _layoutArea.Controls.Clear(); _fitDesignArea(); referenceSize = new Size(this.Size.Width,this.Size.Height); }
public void intitialPlacePageMatFrame(basePageMatFrameArea pageMatFrameItem) { _clearBaseDesignArea(); _pageMatFrame = pageMatFrameItem; _setInitialScale(); _centerAndSizePageMatFrame(); }