Exemple #1
0
        public async void ExecuteSelect(object parameter)
        {
            CSVCollection collection = new CSVCollection();

            filePath   = new FileOperation().ChooseFile();
            collection = await collection.read(filePath);

            Members      = collection.Members.Count;
            Certifiers   = collection.Certifiers.Count;
            Diaries      = collection.Diaries.Count;
            Marines      = collection.Marines.Count;
            Transactions = collection.Transactions.Count;
            Collection   = collection;
        }
Exemple #2
0
        private async void ExecuteSelectCSV()
        {
            filePath = new FileOperation().ChooseFile();
            if (!string.IsNullOrEmpty(filePath))
            {
                collection = await collection.read(filePath);

                CycleMembers      = collection.Members.Count;
                CyclePreparers    = collection.Preparers.Count;
                CycleCertifiers   = collection.Certifiers.Count;
                CycleDiaries      = collection.Diaries.Count;
                CycleMarines      = collection.Marines.Count;
                CycleTransactions = collection.Transactions.Count;
                FileName          = Path.GetFileName(filePath);
            }
        }