public static bool EditOptions(NameSpace session, Options[] options, out Options[] changedOptions)
 {
     changedOptions = null;
       var form = new OptionsForm (session);
       form.OptionsList = options;
       var shouldSave = form.ShowDialog() == DialogResult.OK;
       if (shouldSave)
     changedOptions = form.OptionsList;
       return shouldSave;
 }
Ejemplo n.º 2
0
        public static bool EditOptions(NameSpace session, Options[] options, out Options[] changedOptions)
        {
            changedOptions = null;
            var form = new OptionsForm(session);

            form.OptionsList = options;
            var shouldSave = form.ShowDialog() == DialogResult.OK;

            if (shouldSave)
            {
                changedOptions = form.OptionsList;
            }
            return(shouldSave);
        }
    public static bool EditOptions (
      NameSpace session,
      Options[] options, 
      out Options[] changedOptions,
      Func<Guid, string> profileDataDirectoryFactory,
      bool fixInvalidSettings)
    {
      var form = new OptionsForm (session,profileDataDirectoryFactory, fixInvalidSettings);
      form.OptionsList = options;

      var shouldSave = form.ShowDialog() == DialogResult.OK;
        changedOptions = form.OptionsList;

      return shouldSave;
    }
    public static bool EditOptions (NameSpace session, Options[] options, out Options[] changedOptions, bool checkForNewerVersions, out bool changedCheckForNewerVersions)
    {
      changedCheckForNewerVersions = false;
      changedOptions = null;

      var form = new OptionsForm (session);
      form.OptionsList = options;
      form._checkForNewerVersionsCheckBox.Checked = checkForNewerVersions;

      var shouldSave = form.ShowDialog() == DialogResult.OK;
      if (shouldSave)
      {
        changedOptions = form.OptionsList;
        changedCheckForNewerVersions = form._checkForNewerVersionsCheckBox.Checked;
      }
      return shouldSave;
    }
        public static bool EditOptions(
            NameSpace session,
            Options[] options,
            out Options[] changedOptions,
            Func <Guid, string> profileDataDirectoryFactory,
            bool fixInvalidSettings,
            bool displayAllProfilesAsGeneric)
        {
            var form = new OptionsForm(session, profileDataDirectoryFactory, fixInvalidSettings, displayAllProfilesAsGeneric);

            form.OptionsList = options;

            var shouldSave = form.ShowDialog() == DialogResult.OK;

            changedOptions = form.OptionsList;

            return(shouldSave);
        }
        public static bool EditOptions(NameSpace session, Options[] options, out Options[] changedOptions, bool checkForNewerVersions, out bool changedCheckForNewerVersions)
        {
            changedCheckForNewerVersions = false;
            changedOptions = null;

            var form = new OptionsForm(session);

            form.OptionsList = options;
            form._checkForNewerVersionsCheckBox.Checked = checkForNewerVersions;

            var shouldSave = form.ShowDialog() == DialogResult.OK;

            if (shouldSave)
            {
                changedOptions = form.OptionsList;
                changedCheckForNewerVersions = form._checkForNewerVersionsCheckBox.Checked;
            }
            return(shouldSave);
        }