diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-23 12:21:12 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-23 12:21:12 +0300 |
| commit | f95997c235bab4106f4bdfa33b4b8adb9921bb48 (patch) | |
| tree | 19439fad9068c4c9759099e9a1f7259a2a32d307 /Software/Visual_Studio/Tango.SharedUI/Converters | |
| parent | 46f5f70e6055234bce3e9a105ab1ba86248b1713 (diff) | |
| download | Tango-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/Converters')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/Converters/StringToLinesConverter.cs | 32 |
1 files changed, 32 insertions, 0 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(); + } + } +} |
