// CARRIER TAB FUNCTIONS =============================================================================== private void LoadCarrierDataTab() { //Carrier_Data.DataContext = admin.DisplayCarrier(); //Carrier_DataList.ItemsSource = admin.DisplayCarrier(); FC_Carrier c = new FC_Carrier(); Carrier_DataList.ItemsSource = c.ObjToTable(SQL.Select(c)); }
private void LoadCsvIntoBD(object sender, RoutedEventArgs e) { //check if it is empty FC_Carrier c = new FC_Carrier(); if (c.ObjToTable(SQL.Select(c)).Count == 0) { LoadCSV.Load(); } Carrier_DataLoadClick(null, null); }