public void BatchPlotting() { try { BatchPlot batchPlot = new BatchPlot(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle); batchPlot.ShowDialog(); } catch (System.Exception ex) { } }
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; }