コード例 #1
0
ファイル: PictureCtrl.cs プロジェクト: teodorro/Centipede
 /// <summary>
 /// Конструктор
 /// </summary>
 public PictureCtrl(Size size, dGetBscanPart getBscanPart, StatusStrip statusBar, MarksManagerClass marksMgr, Action zoomCheck, List<string> ascansGps)
 {
     InitializeComponent();
     drawingInfo = new DrawingInfo();
     SetPictureCtrlProperties(size, getBscanPart, statusBar, marksMgr, zoomCheck, ascansGps);
     PictureCoords.Instance.RefreshPicCoords(Width, Height, _bscanLength, _maxAscanLength);
     ShiftPanelError();
 }
コード例 #2
0
ファイル: PictureCtrl.cs プロジェクト: teodorro/Centipede
 /// <summary>
 /// Настройка контрола
 /// </summary>
 private void SetPictureCtrlProperties(Size size, dGetBscanPart getBscanPart, StatusStrip statusBar, MarksManagerClass marksMgr, Action zoomCheck, List<string> ascansGps)
 {
     this.Size = size;
     this._status = statusBar;
     this.hScrollBar1.Value = 0;
     this.vScrollBar1.Value = 0;
     this.MarksMgr = marksMgr;
     this.ZoomCheck = zoomCheck;
     GetBscanPart = getBscanPart;
     renderer = new RendererGdi();
     renderer.SetMaxPictureSize(pictureBoxMain.Size, _bscanLength, _maxAscanLength);
     drawingInfo.ReliefCorrectionPoints = new ReliefCorrectionLine();
     AscansGps = ascansGps;
 }