mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
Added github and donate links.
This commit is contained in:
parent
c1b3a610c3
commit
c76152d706
@ -1,6 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Observatory.Framework.Interfaces;
|
using Observatory.Framework.Interfaces;
|
||||||
@ -83,6 +84,20 @@ namespace Observatory.UI.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OpenGithub()
|
||||||
|
{
|
||||||
|
ProcessStartInfo githubOpen = new("https://github.com/Xjph/ObservatoryCore");
|
||||||
|
githubOpen.UseShellExecute = true;
|
||||||
|
Process.Start(githubOpen);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OpenDonate()
|
||||||
|
{
|
||||||
|
ProcessStartInfo donateOpen = new("https://paypal.me/eliteobservatory");
|
||||||
|
donateOpen.UseShellExecute = true;
|
||||||
|
Process.Start(donateOpen);
|
||||||
|
}
|
||||||
|
|
||||||
public string ToggleButtonText
|
public string ToggleButtonText
|
||||||
{
|
{
|
||||||
get => toggleButtonText;
|
get => toggleButtonText;
|
||||||
|
@ -5,6 +5,15 @@
|
|||||||
xmlns:vw="clr-namespace:Observatory.UI.Views"
|
xmlns:vw="clr-namespace:Observatory.UI.Views"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="Observatory.UI.Views.CoreView">
|
x:Class="Observatory.UI.Views.CoreView">
|
||||||
|
<UserControl.Styles>
|
||||||
|
<Style Selector="Button.Hyperlink">
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="BorderThickness" Value="0,0,0,1"/>
|
||||||
|
<Setter Property="BorderBrush" Value="White"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="FontSize" Value="10"/>
|
||||||
|
</Style>
|
||||||
|
</UserControl.Styles>
|
||||||
<Grid RowDefinitions="30,*,Auto">
|
<Grid RowDefinitions="30,*,Auto">
|
||||||
<TextBlock Grid.Row="0" VerticalAlignment="Center" Padding="10,0,0,0" Name="Title">
|
<TextBlock Grid.Row="0" VerticalAlignment="Center" Padding="10,0,0,0" Name="Title">
|
||||||
Elite Observatory - v0
|
Elite Observatory - v0
|
||||||
@ -31,13 +40,23 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</TabControl.ContentTemplate>
|
</TabControl.ContentTemplate>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
<WrapPanel Height="50" Grid.Row="2" Grid.Column="0" VerticalAlignment="Bottom" Orientation="Horizontal" HorizontalAlignment="Right">
|
<Grid RowDefinitions="Auto,Auto" Grid.Row="2">
|
||||||
<Button Name="ToggleMonitor" Margin="10" Command="{Binding ToggleMonitor}" Content="{Binding ToggleButtonText}">
|
<StackPanel Grid.Column="1" Height="50" VerticalAlignment="Bottom" Orientation="Vertical" HorizontalAlignment="Left">
|
||||||
Start Monitor
|
<Button Classes="Hyperlink" Name="github" Margin="10,0,0,5" Command="{Binding OpenGithub}">
|
||||||
</Button>
|
github
|
||||||
<Button Name="ReadAll" Margin="10" Command="{Binding ReadAll}">
|
</Button>
|
||||||
Read All
|
<Button Classes="Hyperlink" Name="Donate" Margin="10,0,0,0" Command="{Binding OpenDonate}">
|
||||||
</Button>
|
Donate
|
||||||
</WrapPanel>
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
<WrapPanel Grid.Column="2" Height="50" VerticalAlignment="Bottom" Orientation="Horizontal" HorizontalAlignment="Right">
|
||||||
|
<Button Name="ToggleMonitor" Margin="10" Command="{Binding ToggleMonitor}" Content="{Binding ToggleButtonText}">
|
||||||
|
Start Monitor
|
||||||
|
</Button>
|
||||||
|
<Button Name="ReadAll" Margin="10" Command="{Binding ReadAll}">
|
||||||
|
Read All
|
||||||
|
</Button>
|
||||||
|
</WrapPanel>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
Loading…
x
Reference in New Issue
Block a user