private void Capabilities_Load(object sender, EventArgs e) { try { if (m_AppForm.m_IsConnected && !m_IsLoaded) { ReaderCapabilities cap = m_AppForm.m_ReaderAPI.ReaderCapabilities; ListView capView = this.capabilitiesView; capView.Items[0].SubItems.Add(cap.ReaderID.ID); capView.Items[1].SubItems.Add(cap.FirwareVersion); capView.Items[2].SubItems.Add(cap.ModelName); capView.Items[3].SubItems.Add(cap.NumAntennaSupported.ToString()); capView.Items[4].SubItems.Add(cap.NumGPIPorts.ToString()); capView.Items[5].SubItems.Add(cap.NumGPOPorts.ToString()); capView.Items[6].SubItems.Add(cap.MaxNumOperationsInAccessSequence.ToString()); capView.Items[7].SubItems.Add(cap.MaxNumPreFilters.ToString()); capView.Items[8].SubItems.Add(cap.CountryCode.ToString()); capView.Items[9].SubItems.Add(cap.CommunicationStandard.ToString()); capView.Items[10].SubItems.Add(cap.IsUTCClockSupported.ToString()); capView.Items[11].SubItems.Add(cap.IsBlockEraseSupported.ToString()); capView.Items[12].SubItems.Add(cap.IsBlockWriteSupported.ToString()); capView.Items[13].SubItems.Add(cap.IsBlockPermalockSupported.ToString()); capView.Items[14].SubItems.Add(cap.IsRecommissionSupported.ToString()); capView.Items[15].SubItems.Add(cap.IsWriteUMISupported.ToString()); capView.Items[16].SubItems.Add(cap.IsTagInventoryStateAwareSingulationSupported.ToString()); capView.Items[17].SubItems.Add(cap.IsTagEventReportingSupported.ToString()); //capView.Items[18].SubItems.Add(cap.IsRssiFilterSupported.ToString()); m_IsLoaded = true; } else { m_AppForm.functionCallStatusLabel.Text = "Please connect to a reader"; } } catch (Exception ex) { m_AppForm.functionCallStatusLabel.Text = ex.Message; } }
private void Capabilities_Load(object sender, EventArgs e) { try { if (m_AppForm.m_IsConnected) { ReaderCapabilities cap = m_AppForm.m_ReaderAPI.ReaderCapabilities; ListView capView = this.capabilitiesView; ListViewItem item; capView.BeginUpdate(); capView.Items.Clear(); item = new ListViewItem("ReaderID"); item.SubItems.Add(cap.ReaderID.ID.ToString()); capView.Items.Add(item); item = new ListViewItem("Firware Version"); item.SubItems.Add(cap.FirwareVersion); capView.Items.Add(item); item = new ListViewItem("Model Name"); item.SubItems.Add(cap.ModelName); capView.Items.Add(item); item = new ListViewItem("No. of Antennas"); item.SubItems.Add(cap.NumAntennaSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("No. of GPIPorts"); item.SubItems.Add(cap.NumGPIPorts.ToString()); capView.Items.Add(item); item = new ListViewItem("No. of GPOPorts"); item.SubItems.Add(cap.NumGPOPorts.ToString()); capView.Items.Add(item); item = new ListViewItem("Max Operations In AccessSequence"); item.SubItems.Add(cap.MaxNumOperationsInAccessSequence.ToString()); capView.Items.Add(item); item = new ListViewItem("Max No. of PreFilters"); item.SubItems.Add(cap.MaxNumPreFilters.ToString()); capView.Items.Add(item); item = new ListViewItem("CountryCode"); item.SubItems.Add(cap.CountryCode.ToString()); capView.Items.Add(item); item = new ListViewItem("CommunicationStandard"); item.SubItems.Add(cap.CommunicationStandard.ToString()); capView.Items.Add(item); item = new ListViewItem("IsUTCClockSupported"); item.SubItems.Add(cap.IsUTCClockSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsBlockEraseSupported"); item.SubItems.Add(cap.IsBlockEraseSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsBlockWriteSupported"); item.SubItems.Add(cap.IsBlockWriteSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsBlockPermalockSupported"); item.SubItems.Add(cap.IsBlockPermalockSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsBlockWriteSupported"); item.SubItems.Add(cap.IsBlockWriteSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsRecommissionSupported"); item.SubItems.Add(cap.IsRecommissionSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsWriteUMISupported"); item.SubItems.Add(cap.IsWriteUMISupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsTagInventoryStateAwareSingulationSupported"); item.SubItems.Add(cap.IsTagInventoryStateAwareSingulationSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsTagEventReportingSupported"); item.SubItems.Add(cap.IsTagEventReportingSupported.ToString()); capView.Items.Add(item); item = new ListViewItem("IsRssiFilterSupported"); item.SubItems.Add(cap.IsRssiFilterSupported.ToString()); capView.Items.Add(item); capView.EndUpdate(); m_IsLoaded = true; } else { m_AppForm.functionCallStatusLabel.Text = "Please connect to a reader"; } } catch (Exception ex) { m_AppForm.functionCallStatusLabel.Text = ex.Message; } }