Beispiel #1
0
        /// <summary>
        /// Show the form which allows the user the configure the chart recorder.
        /// </summary>
        public void ConfigureChartRecorder()
        {
            MainWindow.Cursor = Cursors.WaitCursor;

            try
            {
                FormConfigureChartRecorder formConfigureChartRecorder = new FormConfigureChartRecorder(MainWindow.CommunicationInterface, MainWindow,
                                                                                                       Workset.ChartRecorder);
                MainWindow.ShowDialog(formConfigureChartRecorder);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, Resources.MBCaptionError, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            finally
            {
                MainWindow.Cursor = Cursors.Default;
            }
        }
        /// <summary>
        /// Show the form which allows the user the configure the chart recorder.
        /// </summary>
        public void ConfigureChartRecorder()
        {
            MainWindow.Cursor = Cursors.WaitCursor;

            // The PTU must be in on-line mode in order to configure the chart recorder.
            Debug.Assert(MainWindow.CommunicationInterface != null, "MenuInterfaceWatch.ConfigureChartRecorder() - [MainWindow.CommunicationInterface != null]");

            try
            {
                FormConfigureChartRecorder formConfigureChartRecorder = new FormConfigureChartRecorder(MainWindow.CommunicationInterface, MainWindow, Workset.ChartRecorder);
                MainWindow.ShowDialog(formConfigureChartRecorder);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, Resources.MBCaptionError, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            finally
            {
                MainWindow.Cursor = Cursors.Default;
            }
        }