private void button_ok_Click(object sender, EventArgs e) { if (text_a.Text == "" || text_b.Text == "" || text_g.Text == "" || text_r.Text == "") { MessageBox.Show("Please Enter Values for R, G, B And A "); } else { button_add.Enabled = true; button_div.Enabled = true; button_mult.Enabled = true; button_sub.Enabled = true; obj = new Genetibase.MathX.NuGenStructures.NuGenRGBA(); obj._x = new float[4]; obj._x[0] = float.Parse(text_r.Text); obj._x[1] = float.Parse(text_g.Text); obj._x[2] = float.Parse(text_b.Text); obj._x[3] = float.Parse(text_a.Text); } }
private void button_add_Click(object sender, EventArgs e) { string str1; str1 = Interaction.InputBox("Please Enter a float value which you need to ADD:", "Float Value", "1", 30, 30); obj1 = obj + float.Parse(str1); display_out(); }
private void button_mult_Click(object sender, EventArgs e) { string str1; str1 = Interaction.InputBox("Please Enter a float value which you need to Multiply:", "Float Value", "1", 30, 30); obj1 = obj * float.Parse(str1); display_out(); }
private void button_ok_Click(object sender, EventArgs e) { if (text_a.Text == "" || text_b.Text == "" || text_g.Text == "" || text_r.Text == "") { MessageBox.Show("Please Enter Values for R, G, B And A "); } else { button_add.Enabled = true; button_div.Enabled = true; button_mult.Enabled = true; button_sub.Enabled = true; obj = new Genetibase.MathX.NuGenStructures.NuGenRGBA(); obj._x = new float[4]; obj._x[0] = float.Parse(text_r.Text); obj._x[1] = float.Parse(text_g.Text); obj._x[2] = float.Parse(text_b.Text); obj._x[3] = float.Parse(text_a.Text); } }