コード例 #1
0
        private void DoubleClickDevice(object sender, EventArgs e)
        {
            var clickedGrid  = (DataGridView)sender;
            var selectedGuid = clickedGrid.CurrentRowStringValue(DevicesBaseCols.DeviceGuid);

            if (!string.IsNullOrEmpty(selectedGuid))
            {
                var device = new Device(selectedGuid);
                ChildFormControl.LookupDevice(this.ParentForm, device);
            }
        }
コード例 #2
0
 private void InfoLabel_Click(object sender, EventArgs e)
 {
     ChildFormControl.LookupDevice(Helpers.ChildFormControl.MainFormInstance(), currentDevice);
 }