示例#1
0
        private void listMonHoc_MouseClick(object sender, MouseEventArgs e)
        {
            try
            {
                if (listMonHoc.SelectedIndex >= 0)
                {
                    monDTO = MonBUS.GetRecord(Int32.Parse(listMonHoc.SelectedValue.ToString()));

                    txtTenMonHocUpdate.Text = monDTO.TenMon;
                }
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }