protected virtual void OnCustomActivated(object sender, System.EventArgs e)
    {
        CustomCompare cc   = new CustomCompare();
        ResponseType  code = (ResponseType)cc.Run();

        if (code == ResponseType.None)
        {
            return;
        }

        if (code == ResponseType.Ok)
        {
            CompareDefinition cd = cc.GetCompare();
            if (cd != null)
            {
                SetCompareDefinition(cd);

                StartCompare(delegate { Title = cd.ToString(); });
                Config.AddRecent(cd);
                Config.Save();
                info_manager.PopulateRecent();
            }
        }

        cc.Destroy();
    }
    public void ComparePaths(string reference, string target)
    {
        var cd = new CompareDefinition(false, reference, false, target);

        SetCompareDefinition(cd);
        StartCompare(delegate { Title = cd.ToString(); });
        Config.AddRecent(cd);
        Config.Save();
        info_manager.PopulateRecent();
    }