From be59dc0676f6e25413f9ca07249e370f335da0a0 Mon Sep 17 00:00:00 2001 From: Cameron MacFarland Date: Wed, 4 Feb 2015 11:38:07 +0800 Subject: [PATCH] Small display fixes for #422 #418 --- .../ExtensionMethods/GrammarExtensions.cs | 2 +- src/ServiceInsight.Desktop/Models/Message.cs | 5 ----- src/ServiceInsight.Desktop/Models/MessageInfo.cs | 13 +------------ src/ServiceInsight.Desktop/Saga/SagaWindowView.xaml | 12 ++---------- 4 files changed, 4 insertions(+), 28 deletions(-) diff --git a/src/ServiceInsight.Desktop/ExtensionMethods/GrammarExtensions.cs b/src/ServiceInsight.Desktop/ExtensionMethods/GrammarExtensions.cs index f6fa713d..a7c4c960 100644 --- a/src/ServiceInsight.Desktop/ExtensionMethods/GrammarExtensions.cs +++ b/src/ServiceInsight.Desktop/ExtensionMethods/GrammarExtensions.cs @@ -29,7 +29,7 @@ public static string SubmillisecondHumanize(this TimeSpan timespan) { if (timespan.Ticks < 10000) { - return String.Format("{0} milliseconds", timespan.Ticks / 10000.0); + return String.Format("{0:0.##} milliseconds", timespan.Ticks / 10000.0); } return timespan.Humanize(); diff --git a/src/ServiceInsight.Desktop/Models/Message.cs b/src/ServiceInsight.Desktop/Models/Message.cs index 235d6200..38ea968b 100644 --- a/src/ServiceInsight.Desktop/Models/Message.cs +++ b/src/ServiceInsight.Desktop/Models/Message.cs @@ -11,11 +11,6 @@ public MessageBody() HeaderRaw = new byte[0]; } - public MessageBody(string id, string label, DateTime sentAt) - : base(id, label, sentAt) - { - } - public int BodySize { get; set; } public string BodyUrl { get; set; } diff --git a/src/ServiceInsight.Desktop/Models/MessageInfo.cs b/src/ServiceInsight.Desktop/Models/MessageInfo.cs index f3d30806..f6da4d2c 100644 --- a/src/ServiceInsight.Desktop/Models/MessageInfo.cs +++ b/src/ServiceInsight.Desktop/Models/MessageInfo.cs @@ -7,24 +7,13 @@ [Serializable] public class MessageInfo : PropertyChangedBase { - public MessageInfo() - { - } - - public MessageInfo(string id, string label, DateTime timeSent) - { - Id = id; - Label = label; - TimeSent = timeSent; - } - public string Id { get; set; } public string Label { get; set; } public string MessageType { get; set; } - public DateTime TimeSent { get; set; } + public DateTime? TimeSent { get; set; } public string FriendlyMessageType { get { return TypeHumanizer.ToName(MessageType); } } } diff --git a/src/ServiceInsight.Desktop/Saga/SagaWindowView.xaml b/src/ServiceInsight.Desktop/Saga/SagaWindowView.xaml index 374d8a09..07829855 100644 --- a/src/ServiceInsight.Desktop/Saga/SagaWindowView.xaml +++ b/src/ServiceInsight.Desktop/Saga/SagaWindowView.xaml @@ -8,8 +8,8 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Name="uc" d:DataContext="{d:DesignInstance {x:Type l:SagaWindowViewModel}}" - d:DesignHeight="300" - d:DesignWidth="300" + d:DesignHeight="800" + d:DesignWidth="1000" mc:Ignorable="d"> @@ -174,14 +174,6 @@ FontSize="16" Style="{StaticResource CodeStyle}" Text="For NSB v4 endpoints, install-package ServiceControl.Plugin.Nsb4.SagaAudit <NameProjectWithSaga>" /> -