SComManager library is a set of classes which wraps the WCF client. Below given is the logic used to download files.
- Add reference of ScomManager in your work space.
- When the editor starts up bring up Login window and login using the class named loginManager
- Store userName and password in variables.
- AfterSuccessful Login
- Check whether a dataset named logn_data.ds is present in the user folder
- DataSet Preset
- If so open it and check whether any records present in it.
- Bring up file manager window and load the file list from the dataset
- Set Download files button disabled
- User can now open a file from this list
- DataSet Not Present
- Bring up the file manager with empty rows
- User can now download files using download button
- Procedure for Downloading files
- Create an instance of DownloadFiles class
- Login using stored user and password
- Download the files
- Save file list in to login_data.ds
- Show downloaded files in grid
- Now user can open the file
No comments:
Post a Comment