Example #1
0
 protected void btnCalculate_ServerClick(object sender, EventArgs e)
 {
     List<viewMolecularMass.mmElement> mm = new viewMolecularMass(Compound.Value).Elements;
     content.InnerHtml = "";
     foreach (viewMolecularMass.mmElement elem in mm)
     {
         content.InnerHtml += string.Format("<div><h1>{0}</h1><div>{1}</div></div>", elem.Symbol, elem.PercentWeight.ToString("N2") + " %");
     }
 }
Example #2
0
 static void Main(string[] args)
 {
     viewMolecularMass.mmElement mm = new viewMolecularMass("H2O").Elements.Where(e => e.Symbol == "H").FirstOrDefault();
     string a = "";
 }