Пример #1
0
        private void FormMedicine_Load(object sender, EventArgs e)
        {
            m_SqlManger = new SqlManger(m_app);

            m_dataTable = m_SqlManger.GetMedicaine();

            MakeTree();

            this.ActiveControl = txtName;
        }
Пример #2
0
        /// <summary>
        /// 页面加载
        /// edit 王冀 2012 10 31
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCMedicine_Load(object sender, EventArgs e)
        {
            try
            {
                m_SqlManger = new SqlManger(m_app);

                m_dataTable = m_SqlManger.GetMedicaine();

                MakeTree();

                this.ActiveControl = txtName;
                this.tbQuery.Focus();
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
            }
        }