Пример #1
0
        public void TestConvolution()
        {
            ConvolutionViewModel testModel = new ConvolutionViewModel();

            testModel.FilterFile = @"filterFile.csv";
            testModel.SignalFile = @"signalFile.csv";

            bool convolveResult = testModel.Convolve().Result;

            Assert.IsTrue(convolveResult);
        }
Пример #2
0
        private void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            bool visibility = (bool)e.NewValue;

            if (visibility == true)
            {
                ConvolutionViewModel model = DataContext as ConvolutionViewModel;

                model?.PlotData();
            }
        }