public ToolBarDropDownButton(Codon codon, object caller, ArrayList subItems)
{
this.RightToLeft = RightToLeft.Inherit;
this.caller = caller;
this.codon = codon;
this.subItems = subItems;
if (codon.Properties.Contains("label")){
Text = StringParser.Parse(codon.Properties["label"]);
}
if (Image == null && codon.Properties.Contains("icon")) {
Image = ResourceService.GetBitmap(StringParser.Parse(codon.Properties["icon"]));
}
if (menuBuilder == null && codon.Properties.Contains("class")) {
menuBuilder = codon.AddIn.CreateObject(StringParser.Parse(codon.Properties["class"])) as ICommand;
menuBuilder.Owner = this;
}
UpdateStatus();
UpdateText();
}