PromoterLoader.loadGene C# (CSharp) Method

loadGene() private method

private loadGene ( Promoter, prom, string name, string RBSf ) : bool
prom Promoter,
name string
RBSf string
return bool
    private bool loadGene(Promoter prom, string name, string RBSf)
    {
        Product gene = new Product();

        if (String.IsNullOrEmpty(name) || String.IsNullOrEmpty(RBSf))
          {
        Debug.Log("Error: Empty Gene name field");
        return false;
          }
        gene.setName(name);
        gene.setQuantityFactor(float.Parse(RBSf.Replace(",", ".")));
        prom.addProduct(gene);
        return true;
    }