Esempio n. 1
0
        // 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));
        }
Esempio n. 2
0
        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);
        }