Example #1
0
        protected void AddLabel(StatementLabel label)
        {
            if (label == null)
            {
                throw new ArgumentNullException("label", "Can't add a null label.");
            }

            mainPanel.Children.Add(label);
        }
Example #2
0
        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);
        }