Skip to content

Commit be59dc0

Browse files
committed
Small display fixes for #422 #418
1 parent ef06482 commit be59dc0

File tree

4 files changed

+4
-28
lines changed

4 files changed

+4
-28
lines changed

src/ServiceInsight.Desktop/ExtensionMethods/GrammarExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static string SubmillisecondHumanize(this TimeSpan timespan)
2929
{
3030
if (timespan.Ticks < 10000)
3131
{
32-
return String.Format("{0} milliseconds", timespan.Ticks / 10000.0);
32+
return String.Format("{0:0.##} milliseconds", timespan.Ticks / 10000.0);
3333
}
3434

3535
return timespan.Humanize();

src/ServiceInsight.Desktop/Models/Message.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ public MessageBody()
1111
HeaderRaw = new byte[0];
1212
}
1313

14-
public MessageBody(string id, string label, DateTime sentAt)
15-
: base(id, label, sentAt)
16-
{
17-
}
18-
1914
public int BodySize { get; set; }
2015
public string BodyUrl { get; set; }
2116

src/ServiceInsight.Desktop/Models/MessageInfo.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,13 @@
77
[Serializable]
88
public class MessageInfo : PropertyChangedBase
99
{
10-
public MessageInfo()
11-
{
12-
}
13-
14-
public MessageInfo(string id, string label, DateTime timeSent)
15-
{
16-
Id = id;
17-
Label = label;
18-
TimeSent = timeSent;
19-
}
20-
2110
public string Id { get; set; }
2211

2312
public string Label { get; set; }
2413

2514
public string MessageType { get; set; }
2615

27-
public DateTime TimeSent { get; set; }
16+
public DateTime? TimeSent { get; set; }
2817

2918
public string FriendlyMessageType { get { return TypeHumanizer.ToName(MessageType); } }
3019
}

src/ServiceInsight.Desktop/Saga/SagaWindowView.xaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
99
x:Name="uc"
1010
d:DataContext="{d:DesignInstance {x:Type l:SagaWindowViewModel}}"
11-
d:DesignHeight="300"
12-
d:DesignWidth="300"
11+
d:DesignHeight="800"
12+
d:DesignWidth="1000"
1313
mc:Ignorable="d">
1414
<UserControl.Resources>
1515
<ResourceDictionary>
@@ -174,14 +174,6 @@
174174
FontSize="16"
175175
Style="{StaticResource CodeStyle}"
176176
Text="For NSB v4 endpoints, install-package ServiceControl.Plugin.Nsb4.SagaAudit &lt;NameProjectWithSaga&gt;" />
177-
<TextBlock Margin="5,2,5,5"
178-
Padding="2"
179-
HorizontalAlignment="Center"
180-
Background="{x:Null}"
181-
FontFamily="Consolas"
182-
FontSize="16"
183-
Style="{StaticResource CodeStyle}"
184-
Text="For NSB v3 endpoints, install-package ServiceControl.Plugin.Nsb3.SagaAudit &lt;NameProjectWithSaga&gt;" />
185177
</StackPanel>
186178
</Border>
187179
</StackPanel>

0 commit comments

Comments
 (0)