示例#1
0
        private async Task LoadFileInfoAsync()
        {
            var dataFileInfoArr = await DataFilesStorageCtrl.GetDataFilesInfoAsync();

            var pDataFilesInfoArr = await PDataFilesStorageCtrl.GetFilesInfoAsync();

            Cmb_dataFileName.ItemsSource          = dataFileInfoArr.Select(e => e.FileName).ToArray();
            Cmb_testDataFileName.ItemsSource      = dataFileInfoArr.Select(e => e.FileName).ToArray();
            Cmb_processedDataFileName.ItemsSource = pDataFilesInfoArr.Select(e => e.FileName).ToArray();
        }
        private async Task LoadFileInfoAsync()
        {
            var fileInfoArr = await DataFilesStorageCtrl.GetDataFilesInfoAsync();

            var modelFilesInfoArr = await ModelFilesStorageController.GetModelFilesInfoAsync();

            var lst = modelFilesInfoArr.Select(e => e.FileName).ToList();

            lst.Add("DefaultSelector");

            cmb_dataFileName.ItemsSource    = fileInfoArr.Select(e => e.FileName).ToArray();
            cmb_modelFileName.ItemsSource   = lst;
            cmb_modelFileName.SelectedIndex = lst.Count - 1;
        }