Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 private void _clearBaseDesignArea()
 {
     _pageMatFrame = null;
     _layoutArea.Controls.Clear();
     _fitDesignArea();
     referenceSize = new Size(this.Size.Width,this.Size.Height);
 }
Esempio n. 3
0
 public void intitialPlacePageMatFrame(basePageMatFrameArea pageMatFrameItem)
 {
     _clearBaseDesignArea();
     _pageMatFrame = pageMatFrameItem;
     _setInitialScale();
     _centerAndSizePageMatFrame();
 }