Пример #1
0
 public static void Main(string[] args)
 {
     OpenFileDialog openFileDialog = new OpenFileDialog();
     openFileDialog.Filter = "Chemical Markup Language file (*.cml)|*.cml";
     if (openFileDialog.ShowDialog() == DialogResult.OK)
     {
         OrganicMolecule x = new OrganicMolecule(CML.ParseCML(File.OpenRead(openFileDialog.FileName)));
         Console.WriteLine(SMILES.SMILESNotation(x));
         Console.WriteLine(x.ToString());
         Console.ReadLine();
     }
 }
Пример #2
0
 public OrganicMoleculeNamer(OrganicMolecule mol)
     : this(mol.chain, mol.PrincipalGroup())
 {
 }