static void Main(string[] args) { RFIDService o = new RFIDService(); ModuleInfo mi = o.getModuleInfo(new string[] { "HL1610250002", "" }); Console.ReadKey(); }
private void Bt_changeStatusRFID_Click(object sender, RoutedEventArgs e) { IList <object> selected = new List <object>(); foreach (var i in gd_RFID.SelectedItems) { selected.Add(i); } foreach (var i in selected) { RFIDService.changeStatus(Convert.ToInt32(i.GetType().GetProperty("id").GetValue(i, null))); } Gd_RFID_Loaded(sender, e); }
public RFIDController(IRFIDService objSvc, IStockDetailsService objSDC) { this.objSvc = objSvc as RFIDService; this.objSDC = objSDC as StockDetailsService; }
private void Bt_addRFID_Click(object sender, RoutedEventArgs e) { RFIDService.insRFID(); Gd_RFID_Loaded(sender, e); }
private void Gd_RFID_Loaded(object sender, RoutedEventArgs e) { gd_RFID.ItemsSource = RFIDService.getAllRFIDWatch(); }