private double _tmpOffset; // Temp offset value(暫時使用, 以後要刪除) #endregion Fields #region Constructors public FailPieceList(MapWindow mp, ref DataTable dtbFlaws, List<bool> doffResult, List<double> cuts,Label currentPage) { InitializeComponent(); this._mp = mp; this._dtbFlaws = dtbFlaws; this._doffResult = doffResult; this._cuts = cuts; this._originCurrentPageLabel = currentPage; if (_dtbFlaws != null && _dtbFlaws.DefaultView.Count > 0) { _originCurrentPage = Convert.ToInt32(_originCurrentPageLabel.Text); _originCurrentPageColor = _originCurrentPageLabel.ForeColor; } }
// (9) :回傳外掛設計的 MapWindow 給主程式 public void GetMapControlHandle(out IntPtr hndl) { // WriteHelper.Log("GetMapControlHandle()"); _mp = new MapWindow(this); // 確保執行順序正確,所以在這邊在 new 物件. hndl = _mp.Handle; _mp.InitTableLayout(ref tlpFlawImages); // 為了讓右邊可以即時更新左邊圖片.把參考加給右邊. }