Simply3DScan
ConfigurationControl.cs
Go to the documentation of this file.
1 using System.Windows.Forms;
2 using Configuration;
3 using SharedObjects;
4 
5 namespace Simple3DScan.UI
6 {
10  public partial class ConfigurationControl : UserControl
11  {
15  private readonly Information configuration = Singleton<Config>.Instance.Information;
16 
20  [Log]
21  [LogException]
23  {
24  this.InitializeComponent();
25 
26  this.InitArduinoValues();
27  this.InitCameraValues();
28  this.InitTurnTableValues();
29  this.InitLaserValues();
30  this.InitLimitValues();
31  this.InitPlacesValues();
32  this.InitResolutionValues();
33  this.InitLanguageValues();
34  this.InitFilterValues();
35  }
36 
37  [Log]
38  [LogException]
39  protected override void Dispose(bool disposing)
40  {
41  if (disposing)
42  {
43  this.components?.Dispose();
44  }
45  this.imagingControl.StopImaging();
46 
47  this.DetachArduinoEvents();
48  this.DetachTurntableEvents();
49  this.DetachCameraEvents();
50  this.DetachFilterEvents();
51  this.DetachLaserEvents();
52  this.DetachLimitEvents();
53  this.DetachPlacesEvents();
54 
55  base.Dispose(disposing);
56  }
57  }
58 }
Class holding the configuration information
Definition: Information.cs:8
Class for creating a singleton for a generic class
Definition: Singleton.cs:9
static T Instance
Gets the instance.
Definition: Singleton.cs:27
override void Dispose(bool disposing)
ConfigurationControl()
Initializes a new instance of the ConfigurationControl class.