-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved some files to different places
- Loading branch information
1 parent
16f40a5
commit 06bf033
Showing
36 changed files
with
990 additions
and
761 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ public enum BuildState | |
InProgress = 1, | ||
Done = 2, | ||
Cancelled = 3, | ||
Failed = 4 | ||
Failed = 4, | ||
ErrorDone = 5 | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
namespace BuildVision.Exports.Factories | ||
using BuildVision.Contracts.Models; | ||
|
||
namespace BuildVision.Exports.Factories | ||
{ | ||
public interface IBuildMessagesFactory | ||
{ | ||
string GetBuildBeginExtraMessage(); | ||
string GetBuildBeginMajorMessage(); | ||
string GetBuildDoneMessage(); | ||
string GetBuildBeginExtraMessage(IBuildInformationModel buildInformationModel); | ||
string GetBuildBeginMajorMessage(IBuildInformationModel buildInformationModel); | ||
string GetBuildDoneMessage(IBuildInformationModel buildInformationModel); | ||
} | ||
} |
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,35 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.Windows; | ||
using System.Windows.Data; | ||
|
||
namespace BuildVision.UI.Converters | ||
{ | ||
[ValueConversion(typeof(bool), typeof(Visibility))] | ||
public class BooleanToHiddenConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
bool flag = false; | ||
if (value is bool) | ||
{ | ||
flag = (bool)value; | ||
} | ||
else if (value is bool?) | ||
{ | ||
bool? nullable = (bool?)value; | ||
flag = (nullable.HasValue && nullable.Value); | ||
} | ||
return flag ? Visibility.Hidden : Visibility.Visible; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
if (value is Visibility) | ||
{ | ||
return (Visibility)value == Visibility.Hidden; | ||
} | ||
return false; | ||
} | ||
} | ||
} |
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
30 changes: 30 additions & 0 deletions
30
src/BuildVision.UI/Converters/StateIconKeyToIconConverter.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,30 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using BuildVision.Contracts; | ||
using BuildVision.UI.Extensions; | ||
using BuildVision.UI.Models; | ||
|
||
namespace BuildVision.UI.Converters | ||
{ | ||
[ValueConversion(typeof(string), typeof(ControlTemplate))] | ||
public class StateIconKeyToIconConverter : IValueConverter | ||
{ | ||
public const string ResourcesUri = @"Resources/BuildState.Resources.xaml"; | ||
|
||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
var stateIconKey = (string)value; | ||
var vector = VectorResources.TryGet(ResourcesUri, stateIconKey) ?? VectorResources.TryGet(ResourcesUri, "StandBy"); | ||
return vector; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
// hope this works.. we don´t need back conversion I guess | ||
return value; | ||
} | ||
} | ||
} | ||
|
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
Oops, something went wrong.