Example #1
0
        /// <summary>
        /// Allow user to edit the form
        /// </summary>
        /// <returns></returns>

        public static DialogResult Edit(ParsedStructureCriteria psc)
        {
            if (Instance == null)
            {
                Instance = new CriteriaStructureSimOptions();
            }
            Instance.Psc = psc;
            Instance.Setup();

            DialogResult dr = Instance.ShowDialog(SessionManager.ActiveForm);

            return(dr);
        }
Example #2
0
/// <summary>
/// Enable/disable gfp options
/// </summary>
/// <param name="enable"></param>

        public static void Enable(bool basicChemAvailable, bool ECFP4_Available)
        {
            if (Instance == null)
            {
                Instance = new CriteriaStructureSimOptions();
            }

            Instance.ECFP4.Enabled = ECFP4_Available;

            Instance.Normal.Enabled = basicChemAvailable;
            Instance.Sub.Enabled    = basicChemAvailable;
            Instance.Super.Enabled  = basicChemAvailable;

            return;
        }