Exemplo n.º 1
0
 /// <summary>
 /// 管理变量
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件参数</param>
 private void buttonX3_Click(object sender, EventArgs e)
 {
     MainForm mForm = new MainForm(conn);
     DialogResult result = mForm.ShowDialog();            
     ReloadData();            
 }
Exemplo n.º 2
0
        /// <summary>
        /// 调试用的主方法
        /// </summary>
        //[STAThread]
        //public static void Main()
        //{
        //    SqlConnection conn = new SqlConnection("Server = jx3web; DataBase = s3design_debug; Uid = s3design; Password = davidbowie");
        //    MainForm mForm = new MainForm(conn);
        //    DialogResult result = mForm.ShowDialog();
        //}

        /// <summary>
        /// 显示编辑窗口
        /// </summary>
        /// <param name="conn">sql连接</param>
        public void Show(SqlConnection conn)
        {
            MainForm mForm = new MainForm(conn);
            DialogResult result = mForm.ShowDialog();
        }