Simply3DScan
ConfigurationControl.Resolutions.cs
Go to the documentation of this file.
1 using System.Linq;
2 using Configuration;
3 using SharedObjects;
4 
5 namespace Simple3DScan.UI
6 {
7  partial class ConfigurationControl
8  {
9  private void InitResolutionValues()
10  {
11  this.precisionControlExcellent.Init(this.configuration.Resolutions.First(x => x.Precision == Precision.Excellent));
12  this.precisionControlGood.Init(this.configuration.Resolutions.First(x => x.Precision == Precision.Good));
13  this.precisionControlAverage.Init(this.configuration.Resolutions.First(x => x.Precision == Precision.Average));
14  this.precisionControlBelowAverage.Init(this.configuration.Resolutions.First(x => x.Precision == Precision.BelowAverage));
15  this.precisionControlBeasty.Init(this.configuration.Resolutions.First(x => x.Precision == Precision.Beasty));
16  }
17 
18  [Log]
19  [LogException]
20  private void buttonLoadPrecisionDefaults_Click(object sender, System.EventArgs e)
21  {
22  this.configuration.Resolutions = Config.CreateDefaultResolutions();
23  this.InitResolutionValues();
24  }
25  }
26 }
static List< Resolution > CreateDefaultResolutions()
Creates the default resolutions.
Definition: Config.cs:202
Class for accessing the configuration.
Definition: Config.cs:12
Precision
Information about the precision of a scan
Definition: Precision.cs:6