public MainForm() { try { //OpenTK.Toolkit.Init(); InitializeComponent(); AddScannerControl(); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show("Error loading - OpenGL problems? - " + ex.Message); } if (!PointCloudScannerSettings.IsInitializedFromSettings) { PointCloudScannerSettings.InitFromSettings(); } if (!GLSettings.IsInitializedFromSettings) { GLSettings.InitFromSettings(); } this.Height = PointCloudScannerSettings.Height; this.Width = PointCloudScannerSettings.Width; //ScannerUC.ScannerTypeDisplayed = PointCloudScannerSettings.ScannerTypeDefault; }
public OpenTKFormAlternative() { InitializeComponent(); InitComboBox(); if (!GLSettings.IsInitializedFromSettings) { GLSettings.InitFromSettings(); } this.Height = GLSettings.Height; this.Width = GLSettings.Width; }
public ucUI() { Thread.CurrentThread.CurrentUICulture = new CultureInfo(CultureInfo.CurrentCulture.LCID); InitializeComponent(); AddOpenGLControl(); if (!GLSettings.IsInitializedFromSettings) { GLSettings.InitFromSettings(); } this.Height = GLSettings.Height; this.Width = GLSettings.Width; this.Text = "UI"; Timer timer = new System.Windows.Forms.Timer() { Interval = 1000, }; timer.Tick += Tick; timer.Enabled = true; }