diff --git a/ObservatoryCore/UI/ViewModels/CoreViewModel.cs b/ObservatoryCore/UI/ViewModels/CoreViewModel.cs index 9b57950..1d9bd39 100644 --- a/ObservatoryCore/UI/ViewModels/CoreViewModel.cs +++ b/ObservatoryCore/UI/ViewModels/CoreViewModel.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Data; +using System.Diagnostics; using System.Linq; using Avalonia.Controls; 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 { get => toggleButtonText; diff --git a/ObservatoryCore/UI/Views/CoreView.axaml b/ObservatoryCore/UI/Views/CoreView.axaml index bdcf35b..68ad3da 100644 --- a/ObservatoryCore/UI/Views/CoreView.axaml +++ b/ObservatoryCore/UI/Views/CoreView.axaml @@ -5,6 +5,15 @@ xmlns:vw="clr-namespace:Observatory.UI.Views" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="Observatory.UI.Views.CoreView"> + + + Elite Observatory - v0 @@ -31,13 +40,23 @@ - - - - + + + + + + + + + + - + \ No newline at end of file