public void SetWaferMap(WaferMap waferMap)
        {
            _waferMap = waferMap;
            Text = waferMap.PathToSourceFile;

            RefreshWaferMapPicture();
            ShowStatInfo();
        }
 private void SaveWaferMapFile(string pathToSave)
 {
     WaferMap waferMap = new WaferMap(_pathToWaferMap);
     waferMap.SetChipsStatus(GetChipVerdictsMap());
     waferMap.SaveWaferMapFile(pathToSave);
 }
        private void OpenWaferMapFile(string initPath = null)
        {
            OpenFileDialog ofd = new OpenFileDialog
            {
                Filter = "Map files (*.map)|*.*",
                Title = "Выбор шаблона карты раскроя",
            };
            if (initPath != null)
                ofd.InitialDirectory = initPath;

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                _pathToWaferMap = ofd.FileName;
                lblCullingPattern.Text = Path.GetFileName(ofd.FileName);
                _waferMap = new WaferMap(ofd.FileName);
                SetVerdictsFromWaferMap();
            }
        }
        private void LoadFolderForTesting(string path)
        {
            _pathToTestingChipsFolder = path;
            Text = path;
            lblNameOfTestFolder.Text = Path.GetFileName(path);

            PrepareImageMas();
            LoadInfoAboutTestingSet();
            SetVerdictsFromWaferMap();
            if (_waferMap == null)
                _waferMap = new WaferMap(GetChipNames());

            RefreshStatisticControls();
        }