Ejemplo n.º 1
0
        /// <summary>
        /// 显示多选的窗口
        /// </summary>
        /// <returns>用户是否确定选择</returns>
        public int ShowMultiAddForm(SqlConnection conn)
        {
            mForm = new MultiAddForm(conn);
            DialogResult result = mForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 显示多选的窗口
 /// </summary>
 /// <returns>用户是否确定选择</returns>
 public int ShowMultiAddForm(SqlConnection conn)
 {
     mForm = new MultiAddForm(conn);
     DialogResult result = mForm.ShowDialog();
     if(result == DialogResult.OK)
     {
         return 1;
     }
     else
     {
         return 0;
     }
 }