public override void Terminate() { if (m_host == null) { return; } m_host.MainWindow.FileClosed -= this.OnFileClosed; m_host.ColumnProviderPool.Remove(m_prov); m_prov = null; m_host = null; }
public override bool Initialize(IPluginHost host) { Terminate(); m_host = host; if (m_host == null) { Debug.Assert(false); return(false); } m_prov = new PasswordModifiedColumnProvider(); m_host.ColumnProviderPool.Add(m_prov); m_host.MainWindow.FileClosed += this.OnFileClosed; return(true); }
private void OnFileClosed(object sender, FileClosedEventArgs e) { PasswordModifiedColumnProvider.ClearCache(); }