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