public Color get_color(double str) { Color clr; // int k = 0; if (Convert.ToDouble(str) < 25 && Convert.ToDouble(str) > 0) { // for (int j = 5; j < 11; j++) { return clr = Color.FromArgb(255, 0, 0); } } }
if
else
return
public Color get_color(double str) { Color clr = new Color(); // int k = 0; if (Convert.ToDouble(str) < 25 && Convert.ToDouble(str) > 0) { // for (int j = 5; j < 11; j++) { clr = Color.FromArgb(255, 0, 0); } } return clr; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)