Ejemplo n.º 1
0
        public ShellProfile GetDefaultShellProfile()
        {
            var id      = GetDefaultShellProfileId();
            var profile = _shellProfiles.ReadValueFromJson(id.ToString(), default(ShellProfile));

            if (profile == null)
            {
                id = _defaultValueProvider.GetDefaultShellProfileId();
                SaveDefaultShellProfileId(id);
                profile = _shellProfiles.ReadValueFromJson(id.ToString(), default(ShellProfile));
            }
            return(profile);
        }
Ejemplo n.º 2
0
        public IDictionary <string, ICollection <KeyBinding> > GetCommandKeyBindings()
        {
            var keyBindings = new Dictionary <string, ICollection <KeyBinding> >();

            foreach (Command command in Enum.GetValues(typeof(Command)))
            {
                keyBindings.Add(command.ToString(), _keyBindings.ReadValueFromJson <Collection <KeyBinding> >(command.ToString(), null) ?? _defaultValueProvider.GetDefaultKeyBindings(command));
            }
            return(keyBindings);
        }
Ejemplo n.º 3
0
 public ApplicationSettings GetApplicationSettings()
 {
     return(_roamingSettings.ReadValueFromJson(nameof(ApplicationSettings), _defaultValueProvider.GetDefaultApplicationSettings()));
 }
Ejemplo n.º 4
0
 public TerminalTheme GetTheme(Guid id)
 {
     return(_themes.ReadValueFromJson(id.ToString(), default(TerminalTheme)));
 }
Ejemplo n.º 5
0
 public TerminalOptions GetTerminalOptions()
 {
     return(_roamingSettings.ReadValueFromJson(nameof(TerminalOptions), _defaultValueProvider.GetDefaultTerminalOptions()));
 }
        public ShellProfile GetDefaultShellProfile()
        {
            var id = GetDefaultShellProfileId();

            return(_shellProfiles.ReadValueFromJson(id.ToString(), default(ShellProfile)));
        }
Ejemplo n.º 7
0
 public SshProfile GetSshProfile(Guid id)
 {
     return(_sshProfiles.ReadValueFromJson(id.ToString(), default(SshProfile)));
 }