public SavingStorage() { UsedProgram = ProjectManager.UsedProgram; Frames = ProjectManager.CurrentProject.Frames; IsBrightnessCalculated = ProjectManager.CurrentProject.IsBrightnessCalculated; SimpleCalculationArea = ProjectManager.CurrentProject.SimpleCalculationArea; ImageSavePath = ProjectManager.ImageSavePath; CalcType = BrightnessCalcType.Advanced; }
/// <summary> /// Calculates the brightness of all frames /// </summary> internal void CalculateBrightness(BrightnessCalcType CalcType) { MainWorker.RunWorkerAsync(new KeyValuePair <Work, object>(Work.CalculateBrightness, CalcType)); }
/// <summary> /// Calculates the brightness of all frames /// </summary> public static void CalculateBrightness(BrightnessCalcType CalcType) { CurrentProject.CalculateBrightness(CalcType); }
/// <summary> /// Calculates the brightness of all frames /// </summary> internal void CalculateBrightness(BrightnessCalcType CalcType) { MainWorker.RunWorkerAsync(new KeyValuePair<Work, object>(Work.CalculateBrightness, CalcType)); }
private void CalculateBrightnessWork(BrightnessCalcType CalculationType) { switch (CalculationType) { case BrightnessCalcType.Advanced: BrCalc_Advanced(); break; case BrightnessCalcType.Exif: BrCalc_Exif(); break; case BrightnessCalcType.Simple: BrCalc_Simple(); break; case BrightnessCalcType.AdvancedII: BrCalc_AdvancedII(); break; case BrightnessCalcType.Lab: BrCalc_Lab(); break; default: BrCalc_Advanced(); break; } }
public void Click_Calculate(BrightnessCalcType Type) { if (CheckBusy()) return; if (ProjectManager.CurrentProject.IsBrightnessCalculated && MsgBox.ShowMessage(MessageContent.BrightnessAlreadyCalculated) == WindowResponse.No) return; if (ProjectManager.CurrentProject.Frames.Count > 1) { ProjectManager.CalculateBrightness(Type); } else { MsgBox.ShowMessage(MessageContent.NotEnoughFrames); } }
public string Click_CalcTypeChanged(BrightnessCalcType Type) { switch (Type) { case BrightnessCalcType.Advanced: return GeneralValues.BrCalc_Advanced_Ex; case BrightnessCalcType.AdvancedII: return GeneralValues.BrCalc_AdvancedII_Ex; case BrightnessCalcType.Exif: return GeneralValues.BrCalc_Exif_Ex; case BrightnessCalcType.Lab: return GeneralValues.BrCalc_Lab_Ex; case BrightnessCalcType.Simple: return GeneralValues.BrCalc_Simple_Ex; default: return ""; } }