프로젝트

일반

사용자정보

개정판 f22054ff

IDf22054ffe225b1f305f8de7ac1940ddd89ee549f
상위 15210c88
하위 93d1b5d6

김태성이(가) 5년 이상 전에 추가함

Markus Monitor Service 추가

Change-Id: I384e98ba411d84c908a21d9afac31f936abf7670

차이점 보기:

ConvertService/ServiceBase/ServiceTestApp/MainWindow.xaml.cs
694 694
        {
695 695

  
696 696
        }
697

  
698
        private void MonitorTest_Click(object sender, RoutedEventArgs e)
699
        {
700
            Markus.Service.MonitorService.ServiceMonitor service = new Markus.Service.MonitorService.ServiceMonitor();
701
            service.Start(null);
702
        }
703

  
704
        private async void FileDownloadTest_Click(object sender, RoutedEventArgs e)
705
        {
706
            try
707
            {
708
                if (!string.IsNullOrWhiteSpace(txtEncodeDownloadFile.Text))
709
                {
710
                    txtDecodeDownloadFile.Text = HttpUtility.UrlDecode(txtEncodeDownloadFile.Text);
711
                }
712

  
713
                if(!string.IsNullOrWhiteSpace(txtDecodeDownloadFile.Text))
714
                {
715
                    txtEncodeDownloadFile.Text = HttpUtility.UrlEncode(txtDecodeDownloadFile.Text);
716
                }
717

  
718
                string File = txtEncodeDownloadFile.Text;
719
                string Savepath = txtSavePath.Text;
720

  
721
                if (!System.IO.Directory.Exists(Savepath))
722
                {
723
                    System.IO.Directory.CreateDirectory(Savepath);
724
                }
725

  
726
                Markus.Service.Convert.ConvertService convertService = new Markus.Service.Convert.ConvertService();
727

  
728
                var result = await convertService.DownloadFileAsync(new Markus.Message.SaveItem { PdfFilePath = File, SavePath = Savepath });
729

  
730
                System.Windows.MessageBox.Show(result.ToString());
731
            }
732
            catch (Exception ex)
733
            {
734
                System.Windows.MessageBox.Show(ex.ToString());
735
            }
736
        }
697 737
    }
698 738

  
699 739
    class IntegratedServiceInstaller

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)