Click here to Skip to main content
15,897,360 members
Articles / Desktop Programming / Windows Forms

Diagrams with Reflector and the Graph Plug-in (Part 2)

Rate me:
Please Sign up or sign in to vote.
4.27/5 (7 votes)
23 Feb 2009CPOL6 min read 35.2K   1.1K   38  
Graphing other dependencies, without Reflector now.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using Refractor;

namespace Refractor.Common
{
    public delegate void DNoArgsDelegate();
    public delegate void DSingleStringDelegate(string text);
    public delegate void DSingleObjectDelegate(object sender);

    public interface IActiveItemViewer 
    {
        void SetActiveItem(BaseItem item);
        void SetRefresh(BaseItem item);
        BaseItem GetActiveItem();
    }

    public enum WindowPluginKind { MainWindow, ProjectItem }

    public interface IWindowPlugin
    {
        string GetID();
        List<Type> GetHandledTypes();
        WindowPluginKind GetKind();
        void SetServiceProvider(IServiceProvider serviceProvider);
        PluginOptions GetOptions();
        void SetOptions(PluginOptions options);
    }

    public interface IParserPlugin
    {
        string GetID();
        List<string> HandlesExtensions();
        List<Type> HandlesItems();
        BaseItem GetFileItem(string name);
        bool ReadItem(BaseItem item, bool unload);
        bool FindChildren(BaseItem parent, List<BaseItem> items);
        bool IsLeaf(BaseItem item);
        void CalcMetrics(BaseItem item);
        void SetServiceProvider(IServiceProvider serviceProvider);
        PluginOptions GetOptions();
        void SetOptions(PluginOptions options);
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
hughdoar@hotmail.com

Comments and Discussions