public override void AwakeFromNib() { try { base.AwakeFromNib(); MainUI = new LapseStudioUI(Platform.MacOSX, this, new CocoaMessageBox(), new CocoaFileDialog()); MainUI.MainGraph = new BrightnessGraph((int)MainGraph.FittingSize.Width, (int)MainGraph.FittingSize.Height); ((Graph)MainGraph).Init(MainUI.MainGraph); MainUI.InitBaseUI(); Window.Delegate = new WindowDelegate(); MainTable.Delegate = new TableDelegate(); ((TableDelegate)MainTable.Delegate).TableSelectionChanged += HandleTableSelectionChanged; } catch(Exception ex) { Error.Report("Init", ex); } }
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); } }