Ejemplo n.º 1
0
 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();            
 }
Ejemplo n.º 2
0
        void Welcome_Loaded(object sender, RoutedEventArgs e)
        {

            UploadService.UploadClient client = new UploadService.UploadClient();

            client.GetSessionTimeOutCompleted += new EventHandler<UploadService.GetSessionTimeOutCompletedEventArgs>(client_GetSessionTimeOutCompleted);
            client.GetSessionTimeOutAsync();


        }
Ejemplo n.º 3
0
         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");
         }     
Ejemplo n.º 4
0
 public void GetDateTime()
 {
     var fs = new UploadService.UploadClient();
     fs.GetDateTimeCompleted += new EventHandler<SilverlightQLThuebao.UploadService.GetDateTimeCompletedEventArgs>(fs_GetDateTimeCompleted);
     fs.GetDateTimeAsync();
 }