public ServiceDefinition CreateNew() { return (Current = new ServiceDefinition()); }
public ServiceDefinitionViewModel(ServiceDefinition serviceDefinition) { _model = serviceDefinition; InitializeCommands(); }
// todo: write some tests, and use openfilesystem.. public void Save(ServiceDefinition serviceDefinition, string filename) { using (var stream = File.Open(filename, FileMode.OpenOrCreate, FileAccess.Write)) _serializer.WriteObject(stream, serviceDefinition); }