コード例 #1
0
ファイル: FileController.cs プロジェクト: mkramers/Projects
        private void OnSearch(object sender, FileViewEventArgs e)
        {
            Search_FileViewEventArgs searchArgs = e as Search_FileViewEventArgs;

            string search = searchArgs.Search;

            FilterSearch(searchArgs.Search);
        }
コード例 #2
0
ファイル: FileController.cs プロジェクト: mkramers/Projects
        private void OnSelectionChanged(object sender, FileViewEventArgs e)
        {
            ListBoxSelectionChanged_FileViewEventArgs selectedArgs = e as ListBoxSelectionChanged_FileViewEventArgs;
            Debug.Assert(selectedArgs != null);

            IList<object> selected = selectedArgs.Selected as IList<object>;
            Debug.Assert(selected != null);

            List<string> selectedFiles = new List<string>();
            foreach (var file in selected)
            {
                string fileString = Convert.ToString(file);
                selectedFiles.Add(fileString);
            }

            Select(selectedFiles);
        }
コード例 #3
0
ファイル: FileController.cs プロジェクト: mkramers/Projects
        private void OnRefresh(object sender, FileViewEventArgs e)
        {
            string text = FileView.DataGrid.Items.Count + " items";

            FileView.FilterResultLabel.Content = text;
        }