public MainForm() { try { InitializeComponent(); MsgBox = new WinFormMessageBox(); FDialog = new WinFormFileDialog(); MainUI = new LapseStudioUI(Platform.Windows, this, MsgBox, FDialog); WinFormFileDialog.InitOpenFolderDialog(this); AddFileToolButton.Image = Timelapse_UI.Properties.Resources.Add32; CalculateToolButton.Image = Timelapse_UI.Properties.Resources.Calculate32; MetadataToolButton.Image = Timelapse_UI.Properties.Resources.Reload32; ProcessToolButton.Image = Timelapse_UI.Properties.Resources.Save32; CancelToolButton.Image = Timelapse_UI.Properties.Resources.Cancel32; MainUI.MainGraph = new BrightnessGraph(MainGraph.Width, MainGraph.Height); MainGraph.Init(MainUI.MainGraph); MainUI.InitBaseUI(); } catch (Exception ex) { Error.Report("Init", ex); } }