public void InsertProductRow(Table tab, MoleculeRow molecule, int rowindex) { tab.Rows[rowindex].Cells[0].Paragraphs[0].Append("Product"); tab.Rows[rowindex].Cells[2].Paragraphs[0].Append(molecule.MWvalue.ToString()); tab.Rows[rowindex].Cells[4].Paragraphs[0].Append(molecule.nvalue.ToString()); tab.Rows[rowindex].Cells[5].Paragraphs[0].Append(molecule.mvalue.ToString()); tab.Rows[rowindex].Cells[6].Paragraphs[0].Append(molecule.Vvalue.ToString()); }
public void InsertRow(Table tab, MoleculeRow molecule, int rowindex) { tab.Rows[rowindex].Cells[0].Paragraphs[0].Append(molecule.Name); tab.Rows[rowindex].Cells[1].Paragraphs[0].Append(molecule.CAS); tab.Rows[rowindex].Cells[2].Paragraphs[0].Append(molecule.MWvalue.ToString()); tab.Rows[rowindex].Cells[3].Paragraphs[0].Append(molecule.Ratio.ToString()); tab.Rows[rowindex].Cells[4].Paragraphs[0].Append(molecule.nvalue.ToString()); tab.Rows[rowindex].Cells[5].Paragraphs[0].Append(molecule.mvalue.ToString()); tab.Rows[rowindex].Cells[6].Paragraphs[0].Append(molecule.Vvalue.ToString()); tab.Rows[rowindex].Cells[7].Paragraphs[0].Append(molecule.Denvalue.ToString()); tab.Rows[rowindex].Cells[8].Paragraphs[0].Append(molecule.Mpvalue.ToString()); tab.Rows[rowindex].Cells[9].Paragraphs[0].Append(molecule.Bpvalue.ToString()); }
public void AddSolvent(MoleculeRow solvent) { Solvents.Add(solvent); }
public void AddProduct(MoleculeRow product) { Products.Add(product); }
public void AddReagent(MoleculeRow reagent) { Reagents.Add(reagent); }