Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 609f17ee authored by Harald MARTINI's avatar Harald MARTINI
Browse files

Change DocumentType to nullable XMLDocumentType

parent 63f5fe4c
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ namespace VECTO3GUI2020.ViewModel.Implementation.Document
#region Implementation of IDocumentViewModel
public string DocumentName { get; }
public XmlDocumentType DocumentType { get; }
public XmlDocumentType? DocumentType { get; }
public DataSource DataSource => _jobEditViewModel.DataSource;
......
......@@ -13,7 +13,7 @@ namespace VECTO3GUI2020.ViewModel.Implementation.Document
private string _name = "";
public string DocumentName { get => _name; }
public XmlDocumentType DocumentType { get; }
public XmlDocumentType? DocumentType { get; }
public DataSource DataSource => throw new System.NotImplementedException();
......
......@@ -18,10 +18,9 @@ namespace VECTO3GUI2020.ViewModel.Implementation.Document
set => _documentName = value;
}
public XmlDocumentType DocumentType
public XmlDocumentType? DocumentType
{
get => _documentType;
set => _documentType = value;
}
public DataSource DataSource
......@@ -33,7 +32,7 @@ namespace VECTO3GUI2020.ViewModel.Implementation.Document
public IEditViewModel EditViewModel { get; set; }
private bool _selected;
private XmlDocumentType _documentType;
private XmlDocumentType? _documentType;
private string _documentName;
private DataSource _dataSource;
......
......@@ -8,7 +8,7 @@ namespace VECTO3GUI2020.ViewModel.Interfaces.Document
public interface IDocumentViewModel
{
string DocumentName { get; }
XmlDocumentType DocumentType { get; }
XmlDocumentType? DocumentType { get; }
DataSource DataSource { get; }
IEditViewModel EditViewModel { get; }
bool Selected { get; set; }
......
......@@ -283,7 +283,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
if (path == null) {
return null;
}
var jsonJob = new JSONJob() {
Header = new JSONJobHeader() {
AppVersion = "Vecto3GUI2020",
......@@ -453,8 +454,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
set => SetProperty(ref _documentName, value);
}
public XmlDocumentType DocumentType => throw new NotImplementedException();
//Remove this from
public XmlDocumentType? DocumentType => null;
public DataSource DataSource
{
......
......@@ -291,7 +291,7 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
public string DocumentName => Path.GetFileNameWithoutExtension(_inputData.DataSource.SourceFile);
public XmlDocumentType DocumentType => XmlDocumentType.MultistageOutputData;
public XmlDocumentType? DocumentType => XmlDocumentType.MultistageOutputData;
public DataSource DataSource => _dataSource;
......
......@@ -103,7 +103,7 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
set => SetProperty(ref _documentName, value);
}
public XmlDocumentType DocumentType => _documentType;
public XmlDocumentType? DocumentType => _documentType;
public DataSource DataSource
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment