Skip to content

Commit

Permalink
Fixed priority mappings and save process
Browse files Browse the repository at this point in the history
  • Loading branch information
acenolaza committed May 6, 2015
1 parent 2d12b23 commit 17e390b
Show file tree
Hide file tree
Showing 15 changed files with 340 additions and 157 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ public virtual bool Disabled
get { return disabled; }
set
{
disabled = value;
NotifyPropertyChanged();
if (disabled != value)
{
disabled = value;
NotifyPropertyChanged();
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ public TimerEntity Timer
get { return timer; }
set
{
timer = value;
NotifyPropertyChanged();
if (timer != value)
{
timer = value;
NotifyPropertyChanged();
}
}
}

Expand Down
14 changes: 10 additions & 4 deletions VersionOne.ServiceHost.ConfigurationTool/Entities/JiraFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ public string Id
get { return id; }
set
{
id = value;
NotifyPropertyChanged();
if (id != value)
{
id = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -31,8 +34,11 @@ public override bool Disabled
get { return disabled; }
set
{
disabled = value;
NotifyPropertyChanged();
if (disabled != value)
{
disabled = value;
NotifyPropertyChanged();
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public JiraPriorityMapping()
[XmlElement("JIRAPriority")]
public Mapping JiraPriority { get; set; }

[XmlElement("VersionOnePriority")]
public Mapping VersionOnePriority { get; set; }

[XmlIgnore]
Expand Down
126 changes: 90 additions & 36 deletions VersionOne.ServiceHost.ConfigurationTool/Entities/JiraServiceEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ public string Url
get { return url; }
set
{
url = value;
NotifyPropertyChanged();
if (url != value)
{
url = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -92,8 +95,11 @@ public string UserName
get { return userName; }
set
{
userName = value;
NotifyPropertyChanged();
if (userName != value)
{
userName = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -104,8 +110,11 @@ public string Password
get { return password; }
set
{
password = value;
NotifyPropertyChanged();
if (password != value)
{
password = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -117,8 +126,11 @@ public ObservableCollection<JiraProjectMapping> ProjectMappings
get { return projectMappings; }
set
{
projectMappings = value;
NotifyPropertyChanged();
if (projectMappings != value)
{
projectMappings = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -130,8 +142,11 @@ public ObservableCollection<JiraPriorityMapping> PriorityMappings
get { return priorityMappings; }
set
{
priorityMappings = value;
NotifyPropertyChanged();
if (priorityMappings != value)
{
priorityMappings = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -142,8 +157,11 @@ public JiraFilter CreateDefectFilter
get { return createDefectFilter; }
set
{
createDefectFilter = value;
NotifyPropertyChanged();
if (createDefectFilter != value)
{
createDefectFilter = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -154,8 +172,11 @@ public JiraFilter CreateStoryFilter
get { return createStoryFilter; }
set
{
createStoryFilter = value;
NotifyPropertyChanged();
if (createStoryFilter != value)
{
createStoryFilter = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -165,8 +186,11 @@ public string CreateFieldId
get { return createFieldId; }
set
{
createFieldId = value;
NotifyPropertyChanged();
if (createFieldId != value)
{
createFieldId = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -176,8 +200,11 @@ public string CreateFieldValue
get { return createFieldValue; }
set
{
createFieldValue = value;
NotifyPropertyChanged();
if (createFieldValue != value)
{
createFieldValue = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -187,8 +214,11 @@ public string CloseFieldId
get { return closeFieldId; }
set
{
closeFieldId = value;
NotifyPropertyChanged();
if (closeFieldId != value)
{
closeFieldId = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -198,8 +228,11 @@ public string CloseFieldValue
get { return closeFieldValue; }
set
{
closeFieldValue = value;
NotifyPropertyChanged();
if (closeFieldValue != value)
{
closeFieldValue = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -209,8 +242,11 @@ public NullableInt ProgressWorkflow
get { return progressWorkflow; }
set
{
progressWorkflow = value;
NotifyPropertyChanged();
if (progressWorkflow != value)
{
progressWorkflow = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -220,8 +256,11 @@ public NullableInt ProgressWorkflowClosed
get { return progressWorkflowClosed; }
set
{
progressWorkflowClosed = value;
NotifyPropertyChanged();
if (progressWorkflowClosed != value)
{
progressWorkflowClosed = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -231,8 +270,11 @@ public string AssigneeStateChanged
get { return assigneeStateChanged; }
set
{
assigneeStateChanged = value;
NotifyPropertyChanged();
if (assigneeStateChanged != value)
{
assigneeStateChanged = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -245,8 +287,11 @@ public string UrlTemplate
get { return urlTemplate; }
set
{
urlTemplate = value;
NotifyPropertyChanged();
if (urlTemplate != value)
{
urlTemplate = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -256,8 +301,11 @@ public string UrlTitle
get { return urlTitle; }
set
{
urlTitle = value;
NotifyPropertyChanged();
if (urlTitle != value)
{
urlTitle = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -269,8 +317,11 @@ public string SourceName
get { return sourceName; }
set
{
sourceName = value;
NotifyPropertyChanged();
if (sourceName != value)
{
sourceName = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -281,8 +332,11 @@ public string LinkField
get { return linkField; }
set
{
linkField = value;
NotifyPropertyChanged();
if (linkField != value)
{
linkField = value;
NotifyPropertyChanged();
}
}
}

Expand Down
14 changes: 10 additions & 4 deletions VersionOne.ServiceHost.ConfigurationTool/Entities/Mapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ public string Id
get { return id; }
set
{
id = value;
NotifyPropertyChanged();
if (id != value)
{
id = value;
NotifyPropertyChanged();
}
}
}

Expand All @@ -24,8 +27,11 @@ public string Name
get { return name; }
set
{
name = value;
NotifyPropertyChanged();
if (name != value)
{
name = value;
NotifyPropertyChanged();
}
}
}
}
Expand Down
16 changes: 14 additions & 2 deletions VersionOne.ServiceHost.ConfigurationTool/Entities/NullableInt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,21 @@ public class NullableInt : BaseEntity
{
public const string StringValueProperty = "StringValue";

private int? numberValue;

[XmlIgnore]
public int? NumberValue { get; set; }
public int? NumberValue
{
get { return numberValue; }
set
{
if (numberValue != value)
{
numberValue = value;
NotifyPropertyChanged();
}
}
}

[XmlText]
public string StringValue
Expand All @@ -20,7 +33,6 @@ public string StringValue
NumberValue = parsedValue;
else
NumberValue = null;
NotifyPropertyChanged();
}
}

Expand Down
Loading

0 comments on commit 17e390b

Please sign in to comment.