aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 12:21:12 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-04-23 12:21:12 +0300
commitf95997c235bab4106f4bdfa33b4b8adb9921bb48 (patch)
tree19439fad9068c4c9759099e9a1f7259a2a32d307 /Software/Visual_Studio/Tango.SharedUI
parent46f5f70e6055234bce3e9a105ab1ba86248b1713 (diff)
downloadTango-f95997c235bab4106f4bdfa33b4b8adb9921bb48.tar.gz
Tango-f95997c235bab4106f4bdfa33b4b8adb9921bb48.zip
Added guidance to event types.
Implemented general event view on PPC. Improved job resume tracking. Improved job resume on PPC. Added corruption emulation to machine emulator.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Converters/StringToLinesConverter.cs32
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Tango.SharedUI.csproj3
2 files changed, 34 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Converters/StringToLinesConverter.cs b/Software/Visual_Studio/Tango.SharedUI/Converters/StringToLinesConverter.cs
new file mode 100644
index 000000000..1d1c420ed
--- /dev/null
+++ b/Software/Visual_Studio/Tango.SharedUI/Converters/StringToLinesConverter.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Data;
+
+namespace Tango.SharedUI.Converters
+{
+ /// <summary>
+ /// Converts a string to list of lines.
+ /// </summary>
+ /// <seealso cref="System.Windows.Data.IValueConverter" />
+ public class StringToLinesConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ if (value != null)
+ {
+ return value.ToString().ToLines();
+ }
+
+ return null;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Software/Visual_Studio/Tango.SharedUI/Tango.SharedUI.csproj b/Software/Visual_Studio/Tango.SharedUI/Tango.SharedUI.csproj
index 37ba006f0..53462afbf 100644
--- a/Software/Visual_Studio/Tango.SharedUI/Tango.SharedUI.csproj
+++ b/Software/Visual_Studio/Tango.SharedUI/Tango.SharedUI.csproj
@@ -127,6 +127,7 @@
<Compile Include="Converters\StringEllipsisConverter.cs" />
<Compile Include="Converters\StringFormatConverter.cs" />
<Compile Include="Converters\StringNullOrEmptyToBooleanConverter.cs" />
+ <Compile Include="Converters\StringToLinesConverter.cs" />
<Compile Include="Converters\StringToWordsConverter.cs" />
<Compile Include="Converters\TimeSpanToTwoDigitsTimeConverter.cs" />
<Compile Include="Converters\VersionToShortVersionConverter.cs" />
@@ -236,7 +237,7 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
- <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
+ <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" />
</VisualStudio>
</ProjectExtensions>
</Project> \ No newline at end of file