Beispiel #1
0
        private void btSearch_Click(object sender, RoutedEventArgs e)
        {
            FileManagerService service  = new FileManagerService();
            List <MyFile>      mySearch = service.FindFile(tbName.Text.Trim());

            dtGrid.ItemsSource = mySearch;
        }
Beispiel #2
0
        public List <MyFile> FindFile([FromBody] FileFinderObject args)
        {
            if (fileservice.Valid(args.user.username, args.user.password))
            {
                List <MyFile> Data = fileservice.FindFile(args.file.name); // Data : { size : ?? , How many users : ??}


                return(Data);
            }
            else
            {
                throw new NullReferenceException();
            }
        }