Exemplo n.º 1
0
        private void ButtonUpdatePictures_Click(object sender, RibbonControlEventArgs e)
        {
            dynamic keep = Globals.ThisAddIn.Application.Selection;

            try
            {
                ChemPictureTool.UpdatePictures(CreatePictureGegerator());
            }
            catch (Exception)
            {
            }
            finally
            {
                if (keep != null)
                {
                    try
                    {
                        keep.Select();
                    }
                    catch (Exception)
                    {
                    }
                }
            }
        }
Exemplo n.º 2
0
 public void Run()
 {
     ChemPictureTool.AddChemicalStructures(range, pictureGenerator, (Action)AddChemicalStructuresCheckCancel);
 }
Exemplo n.º 3
0
 private void ButtonShowPictures_Click(object sender, RibbonControlEventArgs e)
 {
     ChemPictureTool.SetChemicalStructureVisible(true);
 }