Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/ServiceInsight/Shell/About.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,19 @@
<Run Text="www.particular.net" />
</Hyperlink>
</TextBlock>

<TextBlock Text="{Binding CopyrightText}" Canvas.Left="38" Canvas.Top="262" />
<TextBlock Canvas.Left="38"
Canvas.Top="262"
FontFamily="Tahoma"
FontSize="10"
FontWeight="Bold"
>
<Run Text="Serviceinsight will be" />
<Hyperlink Command="{Binding NavigateToServiceInsightSupportPolicyCommand}">
<Run Text="deprecated" />
</Hyperlink>
<Run Text="as of February 10 2027." />
</TextBlock>
<TextBlock Text="{Binding CopyrightText}" Canvas.Left="38" Canvas.Top="282" />
</Canvas>
</Grid>
</Window>
10 changes: 6 additions & 4 deletions src/ServiceInsight/Shell/AboutViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
namespace ServiceInsight.Shell
{
using System.Linq;
using ServiceInsight.ServiceControl;
using System;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Input;
using Caliburn.Micro;
using ServiceInsight.Framework;
using ServiceInsight.Framework.Licensing;
using ServiceInsight.ServiceControl;

public class AboutViewModel : INotifyPropertyChanged, IActivate, IHaveDisplayName
{
Expand All @@ -35,15 +35,15 @@ public class AboutViewModel : INotifyPropertyChanged, IActivate, IHaveDisplayNam
public string ServiceControlVersion { get; private set; }

public string CopyrightText { get; private set; }

public ICommand NavigateToServiceInsightSupportPolicyCommand { get; }
public string DisplayName { get; set; }

public string CommitHash { get; private set; }

public bool IsActive { get; private set; }

public ICommand NavigateToSiteCommand { get; }

public string SupportPolicyUrl => "https://docs.particular.net/serviceinsight/support-policy";
public AboutViewModel(
NetworkOperations networkOperations,
IApplicationVersionService applicationVersionService,
Expand All @@ -57,6 +57,8 @@ public AboutViewModel(
DisplayName = "About";

NavigateToSiteCommand = Command.Create(() => networkOperations.Browse("http://www.particular.net"));
NavigateToServiceInsightSupportPolicyCommand = Command.Create(() => networkOperations.Browse(SupportPolicyUrl));

}

AboutViewModel(IApplicationVersionService applicationVersionService)
Expand Down
27 changes: 27 additions & 0 deletions src/ServiceInsight/Shell/Shell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,30 @@
Command="{Binding ResetLayoutCommand}"
CustomizationContent="Reset Layout"
Content="Restore default layout" />
<dxb:BarStaticItem x:Name="SunsetBanner"
AutoSizeMode="Content"
CustomizationContent="Sunset Banner"
CategoryName="Status"
ShowBorder="False"
Content="{Binding}">
<dxb:BarStaticItem.ContentTemplate>
<DataTemplate>
<Border Background="#FFF9C400" BorderBrush="#FFDFA600" BorderThickness="1" Padding="4,0,4,0" Height="28">
<Grid HorizontalAlignment="Center">
<TextBlock FontWeight="Bold" FontSize="12" VerticalAlignment="Center">
<Run Text="Serviceinsight will be" />
<Hyperlink NavigateUri="https://docs.particular.net/serviceinsight/support-policy"
ToolTip="View support policy"
RequestNavigate="Hyperlink_RequestNavigate">
<Run Text="deprecated" />
</Hyperlink>
<Run Text="as of February 10 2027" />
</TextBlock>
</Grid>
</Border>
</DataTemplate>
</dxb:BarStaticItem.ContentTemplate>
</dxb:BarStaticItem>
<dxb:BarButtonItem x:Name="ProvideFeedback"
AutomationProperties.AutomationId="ProvideFeedbackMenuItem"
CategoryName="Help"
Expand Down Expand Up @@ -195,6 +219,7 @@
</DataTemplate>
</dxb:BarButtonItem.ContentTemplate>
</dxb:BarButtonItem>

<dxb:BarCheckItem Name="DataAutoRefresh"
AutomationProperties.AutomationId="DataAutoRefreshMenuItem"
CustomizationContent="Auto Data Refresh"
Expand Down Expand Up @@ -409,7 +434,9 @@
<dxb:BarItemLinkSeparator />
<dxb:BarCheckItemLink BarItemName="DataAutoRefresh" />
<dxb:BarCheckItemLink BarItemName="RetryMessage" />
<dxb:BarStaticItemLink BarItemName="SunsetBanner" Alignment="Far" />
<dxb:BarButtonItemLink BarItemName="ProvideFeedbackToolbar" Alignment="Far" />

</dxb:Bar>
<dxb:Bar x:Name="StatusBar"
AllowCollapse="True"
Expand Down
7 changes: 7 additions & 0 deletions src/ServiceInsight/Shell/Shell.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace ServiceInsight.Shell
{
using System.Diagnostics;
using System.Windows;
using System.Windows.Navigation;
using DevExpress.Xpf.Bars;
using DevExpress.Xpf.Core;
using DevExpress.Xpf.Core.Serialization;
Expand All @@ -19,6 +21,11 @@ public ShellView()
BarManager.CheckBarItemNames = false;
Loaded += OnShellLoaded;
}
void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri) { UseShellExecute = true });
e.Handled = true;
}

void OnShellLoaded(object sender, RoutedEventArgs e)
{
Expand Down