void CommitCorrection() { if (CurrentLaserIndex >= 0) { LaserCorrection cor = new LaserCorrection(); cor.LoadFromSettings(CurrentLaserIndex); cor.Apply(Drag); cor.SaveToSettings(CurrentLaserIndex); Drag.Init(); } }
void ClearCorrection(int index) { LaserCorrection cor = new LaserCorrection(); cor.SaveToSettings(index); }