-
-
Notifications
You must be signed in to change notification settings - Fork 384
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 #634 from softwaretirol/feature/GuidAndNullableGui…
…dSelect MatSelect - Adding support for GUID / GUID?
- Loading branch information
Showing
4 changed files
with
183 additions
and
1 deletion.
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
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,67 @@ | ||
using System; | ||
|
||
namespace MatBlazor | ||
{ | ||
public class MatBlazorSwitchTGuid : MatBlazorSwitchT<Guid> | ||
{ | ||
public override Guid Increase(Guid v, Guid step, Guid max) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid Decrease(Guid v, Guid step, Guid min) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid Round(Guid v, int dp) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid GetMinimum() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid GetMaximum() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid GetStep() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override string FormatValueAsString(Guid v, string format) | ||
{ | ||
return v.ToString(format); | ||
} | ||
|
||
public override Guid ParseFromString(string v, string format) | ||
{ | ||
return Guid.Parse(v); | ||
} | ||
|
||
public override Guid FromDateTimeNull(DateTime? v) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override DateTime? ToDateTimeNull(Guid v) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid FromBoolNull(bool? v, bool indeterminate) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid FromDecimal(decimal v) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,72 @@ | ||
using System; | ||
|
||
namespace MatBlazor | ||
{ | ||
public class MatBlazorSwitchTGuidNull : MatBlazorSwitchT<Guid?> | ||
{ | ||
public override Guid? Increase(Guid? v, Guid? step, Guid? max) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid? Decrease(Guid? v, Guid? step, Guid? min) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid? Round(Guid? v, int dp) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid? GetMinimum() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid? GetMaximum() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid? GetStep() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override string FormatValueAsString(Guid? v, string format) | ||
{ | ||
return v?.ToString(format); | ||
} | ||
|
||
public override Guid? ParseFromString(string v, string format) | ||
{ | ||
if (Guid.TryParse(v, out var result)) | ||
{ | ||
return result; | ||
} | ||
|
||
return null; | ||
} | ||
|
||
public override Guid? FromDateTimeNull(DateTime? v) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override DateTime? ToDateTimeNull(Guid? v) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid? FromBoolNull(bool? v, bool indeterminate) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Guid? FromDecimal(decimal v) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |