-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luka Grabarevic
committed
Feb 27, 2017
1 parent
176517c
commit 7dbddb1
Showing
25 changed files
with
736 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > | ||
<section name="BuildsAppReborn.Client.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | ||
</sectionGroup> | ||
</configSections> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="DeltaCompressionDotNet.MsDelta" publicKeyToken="46b2138a390abf55" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
<applicationSettings> | ||
<BuildsAppReborn.Client.Properties.Settings> | ||
<setting name="UpdateCheckUrl" serializeAs="String"> | ||
<value>https://github.com/lgrabarevic/BuildsAppReborn</value> | ||
</setting> | ||
</BuildsAppReborn.Client.Properties.Settings> | ||
</applicationSettings> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
BuildsAppReborn.Client/Converter/MinutesToTimeSpanConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.Windows.Data; | ||
|
||
namespace BuildsAppReborn.Client.Converter | ||
{ | ||
internal class MinutesToTimeSpanConverter : IValueConverter | ||
{ | ||
#region Implementation of IValueConverter | ||
|
||
public Object Convert(Object value, Type targetType, Object parameter, CultureInfo culture) | ||
{ | ||
if (value is TimeSpan) | ||
{ | ||
var ts = (TimeSpan) value; | ||
return ts.TotalMinutes; | ||
} | ||
|
||
return Binding.DoNothing; | ||
} | ||
|
||
public Object ConvertBack(Object value, Type targetType, Object parameter, CultureInfo culture) | ||
{ | ||
// ToDo: proper string parsing | ||
if (value is Int32) | ||
{ | ||
var minutes = (Int32) value; | ||
return TimeSpan.FromMinutes(minutes); | ||
} | ||
|
||
return Binding.DoNothing; | ||
} | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
namespace BuildsAppReborn.Client.Interfaces | ||
{ | ||
public interface IHasDataContext | ||
{ | ||
#region Public Properties | ||
|
||
Object DataContext { get; set; } | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace BuildsAppReborn.Client.Interfaces | ||
{ | ||
public interface ISettingsView | ||
public interface ISettingsView : IHasDataContext | ||
{ | ||
} | ||
} |
Oops, something went wrong.