Пример #1
0
        private void AddToFavoritesButton_Click(object sender, EventArgs e)
        {
            Point p = RetrieveModel.PointToScreen(new System.Drawing.Point(0, AddToFavoritesButton.Height));

            MoleculeSelectorControl.AddToFavoritesList(QueryMolCtl, GetSearchType());
            QueryMolCtl.Focus();             // move focus away
        }
Пример #2
0
        private void RetrieveModel_Click(object sender, EventArgs e)
        {
            Query       q  = SessionManager.Instance.QueryBuilderQuery;
            QueryColumn qc = null;

            if (q != null && q.Tables.Count > 0)
            {
                qc = q.Tables[0].KeyQueryColumn;
            }

            Point p = RetrieveModel.PointToScreen(new System.Drawing.Point(0, RetrieveModel.Height));

            MoleculeSelectorControl.ShowModelSelectionMenu(p, QueryMolCtl, StructureSearchType.Substructure, qc);
        }
Пример #3
0
        private void RetrieveModel_Click(object sender, EventArgs e)
        {
            Point p = RetrieveModel.PointToScreen(new System.Drawing.Point(0, RetrieveModel.Height));

            MoleculeSelectorControl.ShowModelSelectionMenu(p, QueryMolCtl, GetSearchType());
        }