add DataGrid extension for Avalonia
This commit is contained in:
		
							parent
							
								
									9befb10587
								
							
						
					
					
						commit
						af16659f97
					
				@ -51,6 +51,7 @@
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <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="System.Configuration.ConfigurationManager" Version="8.0.1" />
 | 
			
		||||
    <PackageReference Include="System.Drawing.Common" Version="8.0.10" />
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,8 @@ using System.Collections.Generic;
 | 
			
		||||
using System.IO;
 | 
			
		||||
using Avalonia;
 | 
			
		||||
using Avalonia.Controls;
 | 
			
		||||
using Avalonia.Interactivity;
 | 
			
		||||
using Avalonia.Input;
 | 
			
		||||
using EDPlayerJournal.Entries;
 | 
			
		||||
using EliteBGS.Util;
 | 
			
		||||
using EDPlayerJournal.BGS;
 | 
			
		||||
 | 
			
		||||
@ -11,6 +11,8 @@ using System.Globalization;
 | 
			
		||||
using System.Diagnostics;
 | 
			
		||||
using Avalonia;
 | 
			
		||||
using Avalonia.Controls;
 | 
			
		||||
using Avalonia.Interactivity;
 | 
			
		||||
using Avalonia.Input;
 | 
			
		||||
 | 
			
		||||
namespace EliteBGS;
 | 
			
		||||
 | 
			
		||||
@ -484,7 +486,7 @@ public partial class MainWindow : Window {
 | 
			
		||||
        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) {
 | 
			
		||||
            RefreshView();
 | 
			
		||||
        }
 | 
			
		||||
@ -547,13 +549,15 @@ public partial class MainWindow : Window {
 | 
			
		||||
        UpdateTheme();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private void URL_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e) {
 | 
			
		||||
    /*
 | 
			
		||||
    private void URL_RequestNavigate(object sender, RequestNavigateEventArgs e) {
 | 
			
		||||
        ProcessStartInfo info = new ProcessStartInfo();
 | 
			
		||||
        info.UseShellExecute = true;
 | 
			
		||||
        info.FileName = e.Uri.AbsoluteUri;
 | 
			
		||||
        Process.Start(info);
 | 
			
		||||
        e.Handled = true;
 | 
			
		||||
    }
 | 
			
		||||
    */
 | 
			
		||||
 | 
			
		||||
    private void NoInfluenceSupport_Toggled(object sender, RoutedEventArgs e) {
 | 
			
		||||
        Config.Global.IgnoreInfluenceSupport = this.NoInfluenceSupport.IsOn;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user