private void SaveDataFiles()
 {
     StaticInventoryTracker.SaveDefaults();
     StaticFactoryValuesManager.SaveValues();
     if (schedule != null)
     {
         schedule.Save();
     }
 }
 private void OnClosing(object sender, CancelEventArgs cancelEventArgs)
 {
     StaticInventoryTracker.SaveDefaults();
 }