Example #1
0
 public ColorChooser()
 {
     InitializeComponent();
     color                 = new OgmoColor(255, 255, 255);
     hexTextBox.Text       = color.ToString();
     colorButton.BackColor = color;
 }
Example #2
0
 public ColorChooser()
 {
     InitializeComponent();
     color = new OgmoColor(255, 255, 255);
     hexTextBox.Text = color.ToString();
     colorButton.BackColor = color;
 }
Example #3
0
 static public void Parse(ref OgmoColor to, TextBox box)
 {
     try
     {
         to = new OgmoColor(box.Text);
     }
     catch
     {
         box.Text = to.ToString();
     }
 }
Example #4
0
 public static void Parse(ref OgmoColor to, TextBox box)
 {
     try
     {
         to = new OgmoColor(box.Text);
     }
     catch
     {
         box.Text = to.ToString();
     }
 }