Пример #1
0
        private void BtnActiveClick(object sender, EventArgs e)
        {
            this.colorDialog1.Color = FavoriteConfigurationElement.TranslateColor(this.txtActive.Text);
            DialogResult result = this.colorDialog1.ShowDialog();

            if (result == DialogResult.OK)
            {
                this.txtActive.Text = FavoriteConfigurationElement.GetDisplayColor(this.colorDialog1.Color);
            }
        }
Пример #2
0
        private void CursorColorButton_Click(object sender, EventArgs e)
        {
            this.colorDialog1.Color = FavoriteConfigurationElement.TranslateColor(this.CursorColorTextBox.Text);
            DialogResult result = this.colorDialog1.ShowDialog();

            if (result == DialogResult.OK)
            {
                this.CursorColorTextBox.Text = FavoriteConfigurationElement.GetDisplayColor(this.colorDialog1.Color);
            }
        }