public LapseStudioUI(Platform RunningPlatform, IUIHandler UIHandler, MessageBox MsgBox, FileDialog FDialog) { this.UIHandler = UIHandler; this.MsgBox = MsgBox; this.FDialog = FDialog; Error.Init(MsgBox); Init(RunningPlatform); AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += HandleUnhandledException; ProjectManager.BrightnessCalculated += CurrentProject_BrightnessCalculated; ProjectManager.FramesLoaded += CurrentProject_FramesLoaded; ProjectManager.ProgressChanged += CurrentProject_ProgressChanged; ProjectManager.WorkDone += CurrentProject_WorkDone; MsgBox.InfoTextChanged += MsgBox_InfoTextChanged; }
public static void Init(MessageBox MsgBox) { Error.MsgBox = MsgBox; Filepath = Path.Combine(Timelapse_API.ProjectManager.ApplicationPath, "ErrorLog.txt"); }
public SettingsUI(MessageBox MsgBox, FileDialog FileDlg) { this.MsgBox = MsgBox; this.FileDlg = FileDlg; }