public override bool Initialize(IPluginHost host) { if (host == null) { return(false); } m_host = host; m_prov = new KP2faColumnProv(); m_host.ColumnProviderPool.Add(m_prov); m_MainMenuItem = new ToolStripMenuItem(_PluginName + " - Search Websites"); m_MainMenuItem.Click += MainMenuItem_OnClick; m_MainMenuItem.Image = Properties.Resources.KP2faC_Icon; m_host.MainWindow.ToolsMenu.DropDownItems.Add(m_MainMenuItem); m_EntryContextCheckItem = new ToolStripMenuItem("Check for 2fa support"); m_EntryContextCheckItem.Click += EntryContextCheckItem_OnClick; m_EntryContextCheckItem.Image = Properties.Resources.KP2faC_Icon; m_host.MainWindow.EntryContextMenu.Items.Insert(m_host.MainWindow.EntryContextMenu.Items.Count, m_EntryContextCheckItem); ToolStripSeparator m_EntryContextCheckSeparator = new ToolStripSeparator(); m_host.MainWindow.EntryContextMenu.Items.Insert(m_host.MainWindow.EntryContextMenu.Items.IndexOf(m_EntryContextCheckItem), m_EntryContextCheckSeparator); m_config = new KP2faC_Config(m_host); init(true); return(true); }
public KP2faC_FileloaderAsync(KP2faC_Config m_config) { this.m_config = m_config; }