protected void AddLabel(StatementLabel label) { if (label == null) { throw new ArgumentNullException("label", "Can't add a null label."); } mainPanel.Children.Add(label); }
protected void AddLabel(string text) { if (text == null) { throw new ArgumentNullException("text", "Can't add a label with null text."); } StatementLabel label = new StatementLabel(text, GetBrush()); AddLabel(label); }