public override bool Initialize(IPluginHost host) { Terminate(); if (host == null) { return(false); } m_host = host; PluginTranslate.Init(this, KeePass.Program.Translation.Properties.Iso6391Code); PluginTranslate.TranslationChanged += (o, e) => { PEDCalcValue.SetTranslatedUnits(); }; Tools.DefaultCaption = PluginTranslate.PluginName; Tools.PluginURL = "https://github.com/rookiestyle/pedcalc/"; m_iconActive = GfxUtil.ScaleImage(Resources.pedcalc, DpiUtil.ScaleIntX(16), DpiUtil.ScaleIntY(16)); m_iconInactive = ToolStripRenderer.CreateDisabledImage(m_iconActive); PwEntry.EntryTouched += OnEntryTouched; GlobalWindowManager.WindowAdded += OnWindowAdded; Tools.OptionsFormShown += Tools_OptionsFormShown; PEDCValueDAO.StartLogging(); m_host.ColumnProviderPool.Add(m_cp); AddMenu(); return(true); }