Beispiel #1
0
        /// <summary>
        /// Creates a new project
        /// </summary>
        /// <param name="type">The type of the project</param>
        public static void NewProject(ProjectType type)
        {
            Close();
            HasInit     = false;
            UsedProgram = type;
            switch (type)
            {
            case ProjectType.LapseStudio:
                CurrentProject = new ProjectLS();
                break;

            case ProjectType.CameraRaw:
                CurrentProject = new ProjectACR();
                break;

            case ProjectType.RawTherapee:
                CurrentProject = new ProjectRT();
                break;
            }

            CurrentProject.ProgressChanged      += OnProgressChanged;
            CurrentProject.FramesLoaded         += OnFramesLoaded;
            CurrentProject.BrightnessCalculated += OnBrightnessCalculated;
            CurrentProject.WorkDone             += OnWorkDone;
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new project
        /// </summary>
        /// <param name="type">The type of the project</param>
        public static void NewProject(ProjectType type)
        {
            Close();
            HasInit = false;
            UsedProgram = type;
            switch (type)
            {
                case ProjectType.LapseStudio:
                    CurrentProject = new ProjectLS();
                    break;
                case ProjectType.CameraRaw:
                    CurrentProject = new ProjectACR();
                    break;
                case ProjectType.RawTherapee:
                    CurrentProject = new ProjectRT();
                    break;
            }

            CurrentProject.ProgressChanged += OnProgressChanged;
            CurrentProject.FramesLoaded += OnFramesLoaded;
            CurrentProject.BrightnessCalculated += OnBrightnessCalculated;
            CurrentProject.WorkDone += OnWorkDone;
        }