예제 #1
0
        void item_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            MenuItem item = (MenuItem)sender;

            //MessageBox.Show((string)item.Tag);
            //SqlHelper.GetDataTable(DbUtility.GetConnection(),
            try
            {
                txtsql.Text = (string)item.Tag;
                this.resDataGridView.DataSource = DbUtility.GetDataFromCommand((string)item.Tag);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }