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(); } }
private void InitializeParameters() { _parameterList = new UiParameterList(); }