Example #1
0
        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());
        }
Example #2
0
 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());
 }
Example #3
0
 public void AddSolvent(MoleculeRow solvent)
 {
     Solvents.Add(solvent);
 }
Example #4
0
 public void AddProduct(MoleculeRow product)
 {
     Products.Add(product);
 }
Example #5
0
 public void AddReagent(MoleculeRow reagent)
 {
     Reagents.Add(reagent);
 }