-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from ChrisStayte/develop
Develop
- Loading branch information
Showing
30 changed files
with
2,095 additions
and
1,091 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > | ||
<section name="Bachup.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> | ||
</sectionGroup> | ||
</configSections> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/> | ||
</startup> | ||
<userSettings> | ||
<Bachup.Properties.Settings> | ||
<setting name="Top" serializeAs="String"> | ||
<value>0</value> | ||
</setting> | ||
<setting name="Left" serializeAs="String"> | ||
<value /> | ||
</setting> | ||
<setting name="Heifht" serializeAs="String"> | ||
<value /> | ||
</setting> | ||
</Bachup.Properties.Settings> | ||
</userSettings> | ||
</configuration> | ||
</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
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,20 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.Windows.Controls; | ||
|
||
namespace Bachup.Helpers | ||
{ | ||
public class SimpleDateValidationRule : ValidationRule | ||
{ | ||
public override ValidationResult Validate(object value, CultureInfo cultureInfo) | ||
{ | ||
DateTime time; | ||
return DateTime.TryParse((value ?? "").ToString(), | ||
CultureInfo.CurrentCulture, | ||
DateTimeStyles.AssumeLocal | DateTimeStyles.AllowWhiteSpaces, | ||
out time) | ||
? ValidationResult.ValidResult | ||
: new ValidationResult(false, "Invalid Time"); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes
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,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Runtime.CompilerServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Bachup.Model | ||
{ | ||
class BachupHistory : INotifyPropertyChanged | ||
{ | ||
public event PropertyChangedEventHandler PropertyChanged; | ||
|
||
// This method is called by the Set accessor of each property. | ||
// The CallerMemberName attribute that is applied to the optional propertyName | ||
// parameter causes the property name of the caller to be substituted as an argument. | ||
internal void NotifyPropertyChanged([CallerMemberName] String propertyName = "") | ||
{ | ||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
|
||
public BachupHistory() | ||
{ | ||
|
||
} | ||
|
||
private DateTime _bachupDateTime; | ||
public DateTime BachupDateTime | ||
{ | ||
get { return _bachupDateTime; } | ||
set | ||
{ | ||
if (_bachupDateTime != value) | ||
{ | ||
_bachupDateTime = value; | ||
NotifyPropertyChanged(); | ||
} | ||
} | ||
} | ||
|
||
private Dictionary<String, bool> _bachupDestinationStatus; | ||
public Dictionary<String, bool> BachupDestinationStatus; | ||
|
||
|
||
|
||
|
||
} | ||
} |
Oops, something went wrong.