Rearrange files to shared project

This commit is contained in:
2026-03-04 21:09:54 +09:00
parent 182055d19e
commit 385f794b03
61 changed files with 68 additions and 45 deletions
@@ -0,0 +1,38 @@
using System;
using System.Diagnostics;
using System.IO;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace MayShow.Views;
public partial class AboutView : UserControl
{
public AboutView()
{
this.InitializeComponent();
// set license text
var processDir = Path.GetDirectoryName(Environment.ProcessPath) ?? "";
var licenseFileName = Path.Combine(processDir, "Assets", "LICENSES.txt");
var licenseText = "";
if (File.Exists(licenseFileName))
{
licenseText = File.ReadAllText(licenseFileName);
}
else
{
licenseFileName = Path.Combine(processDir, "../Resources/Assets/LICENSES.txt");
if (File.Exists(licenseFileName))
{
licenseText = File.ReadAllText(licenseFileName);
}
else
{
licenseText = "Error: Unable to find license file!";
}
}
LicenseTextBlock.Text = licenseText.Trim();
}
}