Skip to content

Commit

Permalink
Small display fixes for #422 #418
Browse files Browse the repository at this point in the history
  • Loading branch information
distantcam committed Feb 4, 2015
1 parent ef06482 commit be59dc0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 0 additions & 5 deletions src/ServiceInsight.Desktop/Models/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
13 changes: 1 addition & 12 deletions src/ServiceInsight.Desktop/Models/MessageInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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); } }
}
Expand Down
12 changes: 2 additions & 10 deletions src/ServiceInsight.Desktop/Saga/SagaWindowView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
<UserControl.Resources>
<ResourceDictionary>
Expand Down Expand Up @@ -174,14 +174,6 @@
FontSize="16"
Style="{StaticResource CodeStyle}"
Text="For NSB v4 endpoints, install-package ServiceControl.Plugin.Nsb4.SagaAudit &lt;NameProjectWithSaga&gt;" />
<TextBlock Margin="5,2,5,5"
Padding="2"
HorizontalAlignment="Center"
Background="{x:Null}"
FontFamily="Consolas"
FontSize="16"
Style="{StaticResource CodeStyle}"
Text="For NSB v3 endpoints, install-package ServiceControl.Plugin.Nsb3.SagaAudit &lt;NameProjectWithSaga&gt;" />
</StackPanel>
</Border>
</StackPanel>
Expand Down

0 comments on commit be59dc0

Please sign in to comment.