Example #1
0
 public CredentialPicker(PwEntry pe, KprEntrySettings peSettings, PwDatabase database, KprConfig config)
 {
     _pe         = pe;
     _peSettings = peSettings;
     _database   = database;
     _config     = config;
 }
Example #2
0
        public override bool Initialize(IPluginHost host)
        {
            Debug.Assert(host != null);
            if (host == null)
            {
                return(false);
            }
            m_host = host;

            m_host.MainWindow.AddCustomToolBarButton(Util.ToolbarConnectBtnId, "💻", "Connect to entry via RDP using credentials.");
            m_host.TriggerSystem.RaisingEvent += TriggerSystem_RaisingEvent;

            _credManager = new CredentialManager();
            _config      = new KprConfig(m_host.CustomConfig);

            return(true);
        }
Example #3
0
        public static Keys GetShortcut(MenuItem item, KprConfig config)
        {
            switch (item)
            {
            case MenuItem.OpenRdpConnection:
                return((Keys)config.ShortcutOpenRdpConnection);

            case MenuItem.OpenRdpConnectionAdmin:
                return((Keys)config.ShortcutOpenRdpConnectionAdmin);

            case MenuItem.OpenRdpConnectionNoCred:
                return((Keys)config.ShortcutOpenRdpConnectionNoCred);

            case MenuItem.OpenRdpConnectionNoCredAdmin:
                return((Keys)config.ShortcutOpenRdpConnectionNoCredAdmin);

            case MenuItem.IgnoreCredentials:
                return((Keys)config.ShortcutIgnoreCredentials);

            default:
                return(Keys.None);
            }
        }
 public KPROptionsForm(KprConfig config)
 {
     _config = config;
     InitializeComponent();
 }
Example #5
0
 public CredentialPickerForm(KprConfig config, PwDatabase db)
 {
     _config = config;
     _db     = db;
     InitializeComponent();
 }