Ejemplo n.º 1
0
        private void onlineAllListView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewHitTestInfo info = onlineAllListView.HitTest(e.X, e.Y);

            if (info.Item != null)
            {
                int        index  = info.Item.Index;
                BaseDevice device = deviceManager.getDevice(index);

                switch (device.CurrentDeviceType)
                {
                default:
                    DemoDeviceForm form2 = new DemoDeviceForm();
                    form2.FatherForm = this;
                    form2.DemoDevice = (DemoVirtualDevice)device;
                    form2.Show();
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        private void onlineAllListView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewHitTestInfo info = onlineAllListView.HitTest(e.X, e.Y);
            if (info.Item != null)
            {
                int index = info.Item.Index;
                BaseDevice device = deviceManager.getDevice(index);

                switch (device.CurrentDeviceType)
                {
                    default:
                        DemoDeviceForm form2 = new DemoDeviceForm();
                        form2.FatherForm = this;
                        form2.DemoDevice = (DemoVirtualDevice)device;
                        form2.Show();
                        break;
                }

            }
        }