Beispiel #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (lstDevices.SelectedItems.Count > 0)
            {
                ListViewItem selectedItem = lstDevices.SelectedItems[0];
                clsDevice    device       = (clsDevice)selectedItem.Tag;

                frmAddDevice showForm = new frmAddDevice(this, device);
                showForm.Show();
            }
        }
Beispiel #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddDevice showForm = new frmAddDevice(this, null);

            showForm.Show();
        }