Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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
Branches
Tags
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; }
......
......@@ -284,6 +284,7 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
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.
Please register or to comment