-
Notifications
You must be signed in to change notification settings - Fork 22
Code Walkthrough
The file details are displayed with the FileDetailViewControl, one control per file
The job details (which includes a list of file details) are displayed with the JobDetailViewControl. There's just the one control; it get reset with a different Job when the user picks new jobs in the list of jobs
The List of jobs is created in the MainWindow.xaml and uses a JobViewControl to show an overview of the job. Note thawt JobViewControl is different from JobDetailViewControl. In either case, there's one per job.
The BitsConversion.cs file and class includes static enums and methods. The enums are used to duplicate the enums that are available to C++/COM programmers but which aren't automatically translated from the MIDL/TLBIMP tools.
The conversion methods will convert an enum value into a user-facing string. It's also where the smiley-face icons come from.
There are three main pop-ups in BITS Manager.
- AddFileTojobWindow is for adding a new file to an existing job.
- CreateNewJobWindow lets you make a new job. It includes an embedded SetJobPropertyControl which includes many of the property settings for BITS jobs
- QuickFileDownloadWindow lets you quickly download from a URL into a local file. It will generate the local file name in part based on the URL (but the user can also specify a file name). It also has an embedded SetJobPropertyControl. The SetJobPropertyControl has a public method called SetJobProperties; when called with a Job, it will set the job properties according to the current state of the UI. The UI includes tri-state controls (e.g., for the Cost property); when those control haven't been changed, the value won't be set at all and the BITS default values will be used.
The BITS Manager solution includes a Test project. From the Visual Studio Test menu you can select Test/Run/All Tests and run all of the unit tests for BITS Manager.