Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Add PostFilterProperties to Designer's
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterForstmeier committed Jul 26, 2011
1 parent 0973b20 commit e80c438
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 4 deletions.
Expand Up @@ -34,6 +34,12 @@ public override void Initialize(IComponent component)
GetService ();
}

protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}


protected override void OnDragDrop(DragEventArgs de)
{
Expand Down
Expand Up @@ -24,6 +24,13 @@ public override void Initialize(IComponent component)
GetService();
}

protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}


#region SmartTags

public override DesignerActionListCollection ActionLists {
Expand Down
Expand Up @@ -48,6 +48,7 @@ public static void RemoveProperties (IDictionary properties)
properties.Remove("TabStop");
properties.Remove("Tag");
properties.Remove("UseWaitCursor");
properties.Remove("Visible");
}

public static void Remove (IDictionary properties,string[] toRemove)
Expand Down
Expand Up @@ -26,6 +26,14 @@ public override void Initialize(IComponent component)
GetService();
}


protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}


private void GetService ()
{
selectionService = GetService(typeof(ISelectionService)) as ISelectionService;
Expand Down
Expand Up @@ -44,6 +44,12 @@ public override void Initialize(IComponent component)

}

protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}

private void OnComponentChanging (object sender,ComponentChangingEventArgs e)
{
// System.Console.WriteLine("changing");
Expand Down
Expand Up @@ -47,6 +47,13 @@ public override void Initialize(IComponent component)

}

protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}


#region events

private void OnComponentChanging (object sender,ComponentChangingEventArgs e)
Expand Down
Expand Up @@ -65,6 +65,13 @@ public override bool CanBeParentedTo(System.ComponentModel.Design.IDesigner pare
}


protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}


private void OnSelectionChanged(object sender, EventArgs e)
{
Control.Invalidate( );
Expand Down
Expand Up @@ -44,6 +44,13 @@ public override void Initialize(IComponent component)

}


protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}

private void OnComponentChanging (object sender,ComponentChangingEventArgs e)
{
// System.Console.WriteLine("changing");
Expand Down
Expand Up @@ -33,13 +33,13 @@ public override void Initialize(IComponent component)
base.Initialize(component);
GetService ();
}


/*
public override bool CanBeParentedTo(System.ComponentModel.Design.IDesigner parentDesigner)
protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
return false;
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}
*/


public override bool CanParent(Control control)
Expand Down
Expand Up @@ -28,6 +28,12 @@ public override void Initialize(IComponent component)
this.ctrl = (BaseTextItem) component;
}

protected override void PostFilterProperties(System.Collections.IDictionary properties)
{
DesignerHelper.RemoveProperties(properties);
base.PostFilterProperties(properties);
}


private void GetService ()
{
Expand Down

0 comments on commit e80c438

Please sign in to comment.