Example #1
0
        public AddItem(UnknownRFID selectedItem)
        {
            this.selectedItem = selectedItem;
            InitializeComponent();

            lbl_SelectedEPC.Content       = "EPC: " + selectedItem.EPC;
            lbl_SelectedTimeStamp.Content = "Timestamp: " + selectedItem.timeStamp;
        }
Example #2
0
        /// <summary>
        ///  Adding an Unregistered RFID tag when it is seleted in the datagrid.
        ///  Open up "AddItem" form.
        /// </summary>
        private void btn_AddItem_Click(object sender, RoutedEventArgs e)
        {
            UnknownRFID selectedItem = (UnknownRFID)UnregisteredDataGrid.SelectedItem;

            if (selectedItem != null)
            {
                AddItem win2 = new AddItem(selectedItem);
                win2.Show();
                win2.Activate();
                win2.Topmost = true;
            }
            else
            {
                MessageBox.Show("Please select an unregistered item above");
            }
        }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 public static void RemoveUnknownRFIDItem(UnknownRFID selectedItem)
 {
     UnknownList.Remove(UnknownList.Where(i => i.EPC == selectedItem.EPC).Single());
 }