public LoginPage() { InitializeComponent(); // this.cmdLogin.IsEnabled = false; ThemeManager.ApplicationThemeName = Theme.Office2007BlueName; // ThemeManager.ApplicationThemeName = Theme.Office2007BlackName; UploadService.UploadClient client = new UploadService.UploadClient(); client.DoWorkCompleted += new EventHandler<UploadService.DoWorkCompletedEventArgs>(client_DoWorkCompleted); client.DoWorkAsync(); }
void Welcome_Loaded(object sender, RoutedEventArgs e) { UploadService.UploadClient client = new UploadService.UploadClient(); client.GetSessionTimeOutCompleted += new EventHandler<UploadService.GetSessionTimeOutCompletedEventArgs>(client_GetSessionTimeOutCompleted); client.GetSessionTimeOutAsync(); }
void DownloadHelpclick(object sender, RoutedEventArgs e) { SaveFileDialog Dialog = new SaveFileDialog(); Dialog.Filter = "PDF Files (*.pdf)|*.pdf"; Dialog.DefaultFileName = "HD_bien_dong_thue_bao"; Dialog.ShowDialog(); outStream = (FileStream)Dialog.OpenFile(); var fs = new UploadService.UploadClient(); fs.DownloadCompleted += new EventHandler<SilverlightQLThuebao.UploadService.DownloadCompletedEventArgs>(fs_DownloadCompleted); fs.DownloadAsync("HD_bien_dong_thue_bao.pdf"); //FunAndPro callF = new FunAndPro(); //callF.Download_Help("HD_bien_dong_thue_bao.pdf"); }
public void GetDateTime() { var fs = new UploadService.UploadClient(); fs.GetDateTimeCompleted += new EventHandler<SilverlightQLThuebao.UploadService.GetDateTimeCompletedEventArgs>(fs_GetDateTimeCompleted); fs.GetDateTimeAsync(); }