Пример #1
0
        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;
        }
Пример #2
0
 public static void Init(MessageBox MsgBox)
 {
     Error.MsgBox = MsgBox;
     Filepath = Path.Combine(Timelapse_API.ProjectManager.ApplicationPath, "ErrorLog.txt");
 }
Пример #3
0
 public SettingsUI(MessageBox MsgBox, FileDialog FileDlg)
 {
     this.MsgBox = MsgBox;
     this.FileDlg = FileDlg;
 }