public AForgeFunction(string loadString) { try { string[] x = loadString.Split(','); _method = (AForgeMethod)Enum.Parse(typeof(AForgeMethod), x[0]); // parameter_int = int.Parse(x[1]); parameter_double = double.Parse(x[1]); R = int.Parse(x[2]); G = int.Parse(x[3]); B = int.Parse(x[4]); Enabled = bool.Parse(x[5]); } catch (Exception e) { throw new Exception("Unable to parse string : " + e); } }