Exemple #1
0
        /// <summary>
        /// 选择AI图
        /// </summary>
        /// <param name="conn">sql连接</param>
        /// <param name="id">当前AI图ID</param>
        /// <returns>是否选择成功</returns>
        public bool SelectAIChart(SqlConnection conn, string id)
        {
            bool selected = false;

            aiChartSelector = new AIChartSelector(conn, id);
            DialogResult result = aiChartSelector.ShowDialog();

            if (result == DialogResult.OK)
            {
                selected = true;
            }

            return(selected);
        }
Exemple #2
0
        /// <summary>
        /// 选择AI图
        /// </summary>
        /// <param name="conn">sql连接</param>
        /// <param name="id">当前AI图ID</param>
        /// <returns>是否选择成功</returns>
        public bool SelectAIChart(SqlConnection conn, string id)
        {
            bool selected = false;

            aiChartSelector = new AIChartSelector(conn, id);
            DialogResult result = aiChartSelector.ShowDialog();

            if(result == DialogResult.OK)
            {
                selected = true;
            }

            return selected;
        }