Пример #1
0
        private void btnTextColor_Click(object sender, EventArgs e)
        {
            if (CurrentCondition == null)
            {
                return;
            }
            ColorPopup popup = new ColorPopup(this);

            if (CurrentCondition.TextFill is SolidFill)
            {
                popup.Color = (CurrentCondition.TextFill as SolidFill).Color;
            }
            popup.ColorSelected += new EventHandler(popup_ColorSelected);
            popup.Show(btnTextColor, 0, btnTextColor.Height);
        }