private void Load() { _sequence = new ELLSequenceXML(); string defaultPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), App.Company, App.ApplicationName); if (!Directory.Exists(defaultPath)) { Directory.CreateDirectory(defaultPath); } OpenFileDialog openFileDialog = new OpenFileDialog { CheckFileExists = true, FileName = String.IsNullOrEmpty(defaultPath) ? "EllSequence.ell" : defaultPath, DefaultExt = ".ell", Filter = "Elliptec Sequence (.ell)|*.ell", InitialDirectory = defaultPath }; bool?result = openFileDialog.ShowDialog(); if (!result.GetValueOrDefault(false)) { return; } _sequence = ELLSequenceXML.Load(openFileDialog.FileName); BuildList(null); RaisePropertyChanged(() => RepeatRun); RaisePropertyChanged(() => RepeatContinuously); RaisePropertyChanged(() => RepeatCount); }