コード例 #1
0
 public void BatchPlotting()
 {
     try
     {
         BatchPlot batchPlot = new BatchPlot(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle);
         batchPlot.ShowDialog();
     }
     catch (System.Exception ex)
     {
     }
 }
コード例 #2
0
ファイル: ProcessBar.xaml.cs プロジェクト: 15831944/Micro-GDS
        public BatchProcessBar(BatchPlot batchPlot, IntPtr ptHandler)
        {
            InitializeComponent();
            new WindowInteropHelper(this).Owner = ptHandler;
            _batchPlot             = batchPlot;
            _pbarMaximumSubscriber = new BatchPlotingSubscriber <double>(BatchPlotingPublisher.ProgressBarMaximumPublisher);
            _pbarMaximumSubscriber.Publisher.DataPublisher += Publisher_MaximumDataPublisher;

            _pbarValueSubscriber = new BatchPlotingSubscriber <double>(BatchPlotingPublisher.ProgressValuePublisher);
            _pbarValueSubscriber.Publisher.DataPublisher += Publisher_ValueDataPublisher;

            _pbarStatusSubscriber = new BatchPlotingSubscriber <string>(BatchPlotingPublisher.ProgressStatusPublisher);
            _pbarStatusSubscriber.Publisher.DataPublisher += Publisher_StatusDataPublisher;

            _pbarHeaderSubscriber = new BatchPlotingSubscriber <string>(BatchPlotingPublisher.ProgressHeaderPublisher);
            _pbarHeaderSubscriber.Publisher.DataPublisher += Publisher_HeaderDataPublisher;
        }