Exemplo n.º 1
0
        private void LoadParams(object sender, RoutedEventArgs e)
        {
            var dialog = new OpenFileDialog
            {
                DefaultExt = ".nwp",
                Filter     = "NewWave parameters (*.nwp)|*.nwp"
            };

            if (dialog.ShowDialog() ?? false)
            {
                using (Stream stream = File.Open(dialog.FileName, FileMode.Open))
                {
                    _parameterList = (UiParameterList) new BinaryFormatter().Deserialize(stream);
                }
                LoadParameters();
            }
        }
Exemplo n.º 2
0
 private void InitializeParameters()
 {
     _parameterList = new UiParameterList();
 }