示例#1
0
 public void Notification(OptionsDialogFrameNotificationType id)
 {
     Utils.TryCatch(() =>
     {
         if (id == OptionsDialogFrameNotificationType.AIMP_SERVICE_OPTIONSDIALOG_NOTIFICATION_SAVE)
         {
             _options.AutoUpdate = _form.OptionAutoUpdate;
             _options.Format     = _form.OptionFormat;
             _options.Auths      = new List <OptionsAuth>(_form.OptionAuths);
             _options.Auths.Sort((x, y) => x.Extractor.CompareTo(y.Extractor));
             _options.Save();
             _ytb.Clear();
         }
         if (id == OptionsDialogFrameNotificationType.AIMP_SERVICE_OPTIONSDIALOG_NOTIFICATION_LOAD)
         {
             _form.OptionAutoUpdate = _options.AutoUpdate;
             _form.OptionFormat     = _options.Format;
             _form.Version          = _ytb.Version;
             _form.OptionAuths      = new List <OptionsAuth>(_options.Auths);
             _form.Extractors       = _ytb.GetExtractors();
         }
     });
 }
 /// <inheritdoc />
 public void Notification(OptionsDialogFrameNotificationType id)
 {
 }