void ShowIntervalMessage(IntervalSettings intervalSettings)
        {
            if (intervalSettings.EnableMessage1BeforeStartMeasuring)
            {
                if (DataMeasuringType == DataMeasuringType.Signal)
                {
                    SequenceCtrl.Dispatcher.Invoke(() => {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message1BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage2BeforeStartMeasuring)
            {
                if (DataMeasuringType == DataMeasuringType.Signal)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message2BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage3BeforeStartMeasuring)
            {
                if (DataMeasuringType == DataMeasuringType.Signal)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message3BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }


            if (intervalSettings.EnableMessage1BeforeStartMeasuringForNoise)
            {
                if (DataMeasuringType == DataMeasuringType.Noise)
                {
                    SequenceCtrl.Dispatcher.Invoke(() => {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message1BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage2BeforeStartMeasuringForNoise)
            {
                if (DataMeasuringType == DataMeasuringType.Noise)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message2BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage3BeforeStartMeasuringForNoise)
            {
                if (DataMeasuringType == DataMeasuringType.Noise)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message3BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }
        }
        void ShowIntervalMessage(IntervalSettings intervalSettings)
        {
            if (intervalSettings.EnableMessage1BeforeStartMeasuring)
            {
                if (DataMeasuringType == DataMeasuringType.Signal)
                {
                    SequenceCtrl.Dispatcher.Invoke(() => {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = Experiment.ExperimentSettings.HardwareSettings.HardwareType.ToString() + "," +
                                                      "Частотный диапазон:" + (intervalSettings.FrequencyStart / 1000000).ToString() + "мГц - " + (intervalSettings.FrequencyStop / 1000000).ToString() + "мГц," +
                                                      Environment.NewLine +
                                                      intervalSettings.Message1BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage2BeforeStartMeasuring)
            {
                if (DataMeasuringType == DataMeasuringType.Signal)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message2BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage3BeforeStartMeasuring)
            {
                if (DataMeasuringType == DataMeasuringType.Signal)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message3BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }


            if (intervalSettings.EnableMessage1BeforeStartMeasuringForNoise)
            {
                if (DataMeasuringType == DataMeasuringType.Noise)
                {
                    SequenceCtrl.Dispatcher.Invoke(() => {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = Experiment.ExperimentSettings.HardwareSettings.HardwareType.ToString() + "," +
                                                      "Частотный диапазон:" + intervalSettings.FrequencyStart.ToString() + " - " + intervalSettings.FrequencyStop.ToString() + "," + intervalSettings.Message1BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage2BeforeStartMeasuringForNoise)
            {
                if (DataMeasuringType == DataMeasuringType.Noise)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message2BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }

            if (intervalSettings.EnableMessage3BeforeStartMeasuringForNoise)
            {
                if (DataMeasuringType == DataMeasuringType.Noise)
                {
                    SequenceCtrl.Dispatcher.Invoke(() =>
                    {
                        MessageWindow messageWindow = new MessageWindow();
                        messageWindow.Message       = intervalSettings.Message3BeforeStartMeasuring;
                        messageWindow.ShowDialog();
                    });
                }
            }
        }