public MatchingParameters(MatchingModelParam param)
 {
     ModelCenterRow = param.ModelCenterRow;
     ModelCenterCol = param.ModelCenterCol;
     InitializeComponent();
     HGraphics                         = new Display(hWindowControl1);
     HGraphics.allObj                  = param.allObj;
     AngleStart                        = param.AngleStart;
     AngleStartText.Text               = AngleStart.ToString();
     AngleExtent                       = param.AngleExtent;
     AngleExtentText.Text              = AngleExtent.ToString();
     NumMatches                        = param.NumMatches;
     NumMatchTextBox.Text              = NumMatches.ToString();
     NumLevels                         = param.NumLevels;
     NumLevelsTextBox.Text             = NumLevels.ToString();
     OptimizationComboBox.SelectedItem = param.Optimization.S;
     SubPixComboBox.SelectedItem       = param.SubPix.S;
     minScoreScroll.Value              = Convert.ToInt16(param.MinScore.D * 100);
     contrastBar.Value                 = param.Contrast;
     OverlapScroll.Value               = Convert.ToInt16(param.Overlap.D * 100);
     GreedinessScroll.Value            = Convert.ToInt16(param.Greediness.D * 100);
     GreedinessValue.Text              = (param.Greediness * 100.0).ToString() + "%";
     CreateModel.Visible               = false;
     groupBox1.Enabled                 = false;
     FindButton.Visible                = true;
 }
 public MatchingParameters()
 {
     InitializeComponent();
     HGraphics             = new Display(hWindowControl1);
     AngleStart            = -0.39;
     AngleStartText.Text   = AngleStart.ToString();
     AngleExtent           = 0.79;
     AngleExtentText.Text  = AngleExtent.ToString();
     NumMatches            = 0;
     NumMatchTextBox.Text  = NumMatches.ToString();
     NumLevels             = 0;
     NumLevelsTextBox.Text = NumLevels.ToString();
     OptimizationComboBox.SelectedIndex = 0;
     SubPixComboBox.SelectedIndex       = 1;
 }