public override DesignerActionItemCollection GetSortedActionItems()
{
this.AddHeaderItem(new DesignerActionHeaderItem("Actions", "600"));
DesignerActionMethodItem addPanel = new DesignerActionMethodItem(this, "AddPanel", "Add Panel", "600");
DesignerActionMethodItem addTabPanel = new DesignerActionMethodItem(this, "AddTabPanel", "Add TabPanel", "600");
//DesignerActionMethodItem clear = new DesignerActionMethodItem(this, "Clear", "Clear layout", "600", "Remove control from layout");
if (((FitLayout)this.Control).Items.Count > 0)
{
//this.AddMethodItem(clear);
this.RemoveMethodItem(addPanel);
this.RemoveMethodItem(addTabPanel);
}
else
{
this.AddMethodItem(addPanel);
this.AddMethodItem(addTabPanel);
//this.RemoveMethodItem(clear);
}
return base.GetSortedActionItems();
}
}