/// <summary>
 /// Saves the run as settings to the password entry.
 /// </summary>
 /// <param name="settings">The run as settings for the entry.</param>
 internal void SetRunAsSettings(RunAsEntrySettings settings)
 {
     this.SaveFieldValue(FieldNames.RunAs.IsEnabled, settings.IsEnabled, default(bool).ToString());
     this.SaveFieldValue(FieldNames.RunAs.Application, settings.Application);
     this.SaveFieldValue(FieldNames.RunAs.Arguments, settings.Arguments);
     this.SaveFieldValue(FieldNames.RunAs.WorkingDir, settings.WorkingDir);
     this.SaveFieldValue(FieldNames.RunAs.NetOnly, settings.IsNetOnly, default(bool).ToString());
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Load the settings from the password entry manager in to the <see cref="this.settings"/> property and the control fields.
        /// </summary>
        private void LoadSettings()
        {
            this.settings = this.passwordEntryManager.GetRunAsSettings();

            this.enableRunAs.Checked = this.settings.IsEnabled;
            this.application.Text    = this.settings.Application;
            this.arguments.Text      = this.settings.Arguments;
            this.workingDir.Text     = this.settings.WorkingDir;
            this.netOnly.Checked     = this.settings.IsNetOnly;

            this.SetRunAsEnabledState(this.settings.IsEnabled);
        }
Ejemplo n.º 3
0
 internal ApplicationExecutor(PasswordEntryManager entryManager)
 {
     this.entryManager = entryManager;
     this.settings     = this.entryManager.GetRunAsSettings();
 }