public static string GetVersion() { var c = new ConfigOpt(HostInstance.CustomConfig); var verOvr = c.OverrideKeePassXcVersion; return(string.IsNullOrWhiteSpace(verOvr) ? KeePassXcVersion.ToString() : verOvr); }
public PwDatabase GetConnectionDatabase() { var options = new ConfigOpt(HostInstance.CustomConfig); if (string.IsNullOrEmpty(options.ConnectionDatabaseHash)) { return(HostInstance.Database); } else { var document = HostInstance.MainWindow.DocumentManager.Documents.Find(p => GetDbHash(p.Database) == options.ConnectionDatabaseHash); if (document != null) { return(document.Database); } else { return(HostInstance.Database); } } }
internal string GetDbHashForMessage() { var opts = new ConfigOpt(HostInstance.CustomConfig); return(GetDbHash(GetConnectionDatabase(), !opts.UseKeePassXcSettings)); }
public OptionsForm(ConfigOpt config) { _config = config; InitializeComponent(); }