public GroupingGridPropertyDialog(GridGroupingControl grid)
    {
        InitializeComponent();

        try
        {
            System.Drawing.Icon ico = new System.Drawing.Icon(GetIconFile(@"Common\Images\Grid\Icon\sfgrid.ico"));
            this.Icon = ico;
        }
        catch
        {}


        this.grid = grid;
        this.grid.FilterRuntimeProperties = true;
        propertyGrid.SelectedObject       = grid;

        if (propertyGrid != null)
        {
            this.pgMenu = new PropertyGridContextMenu(this.propertyGrid);
        }

        this.grid.PropertyChanged += new DescriptorPropertyChangedEventHandler(grid_PropertyChanged);
        this.grid.TableDescriptor.PropertyChanged += new DescriptorPropertyChangedEventHandler(TableDescriptor_PropertyChanged);
        this.grid.Engine.SourceListChanged        += new EventHandler(Engine_SourceListChanged);
        Application.Idle += new EventHandler(Application_Idle);
    }
Exemple #2
0
    public GroupingGridPropertyDialog(GridGroupingControl grid)
    {
        InitializeComponent();

        this.grid = grid;
        this.grid.FilterRuntimeProperties = true;
        propertyGrid.SelectedObject       = grid;

        if (propertyGrid != null)
        {
            this.pgMenu = new PropertyGridContextMenu(this.propertyGrid);
        }
        this.grid.PropertyChanged += new DescriptorPropertyChangedEventHandler(grid_PropertyChanged);
        this.grid.TableDescriptor.PropertyChanged += new DescriptorPropertyChangedEventHandler(TableDescriptor_PropertyChanged);
        this.grid.Engine.SourceListChanged        += new EventHandler(Engine_SourceListChanged);
        Application.Idle += new EventHandler(Application_Idle);
    }