using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MeasureThread { interface IPhoto { bool TakePhoto(); } public class PhotoParam { private float mag; public string savePath; public string scanSpeed; public string scanSpeedAfter; public float Mag { get => mag; set { if (value < 200) value = 200; mag = value; } } } }