Compare commits

...

2 Commits

6 changed files with 18 additions and 8 deletions

View File

@ -51,7 +51,10 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Avalonia" Version="11.2.0" /> <PackageReference Include="Avalonia" Version="11.2.0" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.2.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> <PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" /> <PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -4,6 +4,8 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using Avalonia; using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Input;
using EDPlayerJournal.Entries; using EDPlayerJournal.Entries;
using EliteBGS.Util; using EliteBGS.Util;
using EDPlayerJournal.BGS; using EDPlayerJournal.BGS;

View File

@ -11,6 +11,8 @@ using System.Globalization;
using System.Diagnostics; using System.Diagnostics;
using Avalonia; using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Input;
namespace EliteBGS; namespace EliteBGS;
@ -484,7 +486,7 @@ public partial class MainWindow : Window {
RefreshView(); RefreshView();
} }
private void Profit_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) { private void Profit_KeyUp(object sender, KeyEventArgs e) {
if (e.Key == Key.Enter) { if (e.Key == Key.Enter) {
RefreshView(); RefreshView();
} }
@ -547,13 +549,15 @@ public partial class MainWindow : Window {
UpdateTheme(); UpdateTheme();
} }
private void URL_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e) { /*
private void URL_RequestNavigate(object sender, RequestNavigateEventArgs e) {
ProcessStartInfo info = new ProcessStartInfo(); ProcessStartInfo info = new ProcessStartInfo();
info.UseShellExecute = true; info.UseShellExecute = true;
info.FileName = e.Uri.AbsoluteUri; info.FileName = e.Uri.AbsoluteUri;
Process.Start(info); Process.Start(info);
e.Handled = true; e.Handled = true;
} }
*/
private void NoInfluenceSupport_Toggled(object sender, RoutedEventArgs e) { private void NoInfluenceSupport_Toggled(object sender, RoutedEventArgs e) {
Config.Global.IgnoreInfluenceSupport = this.NoInfluenceSupport.IsOn; Config.Global.IgnoreInfluenceSupport = this.NoInfluenceSupport.IsOn;

View File

@ -1,5 +1,6 @@
using System.Globalization; using System.Globalization;
using System; using System;
using Avalonia.Data.Converters;
namespace EliteBGS; namespace EliteBGS;

View File

@ -63,10 +63,10 @@ namespace EliteBGS.Properties {
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary> /// </summary>
internal static System.Drawing.Common.Icon EliteBGS { internal static System.Drawing.Icon EliteBGS {
get { get {
object obj = ResourceManager.GetObject("EliteBGS", resourceCulture); object obj = ResourceManager.GetObject("EliteBGS", resourceCulture);
return ((System.Drawing.Common.Icon)(obj)); return ((System.Drawing.Icon)(obj));
} }
} }
} }

View File

@ -9,14 +9,14 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace EliteBGS.Properties { namespace EliteBGS.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default { public static Settings Default {
get { get {
return defaultInstance; return defaultInstance;