示例#1
0
        public void LoadComboBox()
        {
            List <eDisk> ls = dbll.getAllDisk();

            foreach (eDisk item in ls)
            {
                cmbDiskID.Items.Add(item.DiskID);
            }
        }
示例#2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            int diskid = Convert.ToInt32(lblDiskID.Text);

            if (diskbll.deleteDisk(diskid))
            {
                listdisk = diskbll.getAllDisk();
                LoadDataGridView();
                MessageBox.Show("Success");
            }
            else
            {
                MessageBox.Show("fail");
            }
        }