Example #1
0
        public void Transformation()
        {
            Stopwatch timer = new Stopwatch();

            try
            {
                timer.Start();
                SelectedTab.SignalData.ComplexSamples = SelectedTransformation.TransformOperation(SelectedTab.SignalData.ConversionSamplesY);
                timer.Stop();
                SelectedTab.SetTransformationTime(timer.Elapsed.TotalSeconds);
                SelectedTab.DrawW();
            }
            catch (ArgumentException e)
            {
                SelectedTab.SetTransformationTime(0);
                MessageBox.Show(e.Message, "Błąd", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }