much happenings in this fucked up world
This commit is contained in:
parent
29fc81ef37
commit
2f6d3b7b5b
55 changed files with 1067 additions and 52 deletions
16
PC2Player/PC2Player.Gtk/PC2Player.Gtk.csproj
Normal file
16
PC2Player/PC2Player.Gtk/PC2Player.Gtk.csproj
Normal file
|
@ -0,0 +1,16 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PC2Player\PC2Player.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Eto.Platform.Gtk" Version="2.9.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
14
PC2Player/PC2Player.Gtk/Program.cs
Normal file
14
PC2Player/PC2Player.Gtk/Program.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using Eto.Forms;
|
||||
|
||||
namespace PC2Player.Gtk
|
||||
{
|
||||
class Program
|
||||
{
|
||||
[STAThread]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
new Application(Eto.Platforms.Gtk).Run(new MainForm());
|
||||
}
|
||||
}
|
||||
}
|
BIN
PC2Player/PC2Player.Mac/Icon.icns
Normal file
BIN
PC2Player/PC2Player.Mac/Icon.icns
Normal file
Binary file not shown.
20
PC2Player/PC2Player.Mac/Info.plist
Normal file
20
PC2Player/PC2Player.Mac/Info.plist
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleName</key>
|
||||
<string>PC2Player</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.example.PC2Player</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.15</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string></string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>Icon.icns</string>
|
||||
</dict>
|
||||
</plist>
|
18
PC2Player/PC2Player.Mac/PC2Player.Mac.csproj
Normal file
18
PC2Player/PC2Player.Mac/PC2Player.Mac.csproj
Normal file
|
@ -0,0 +1,18 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
|
||||
<RuntimeIdentifiers>osx-x64;osx-arm64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PC2Player\PC2Player.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Eto.Platform.Mac64" Version="2.9.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
14
PC2Player/PC2Player.Mac/Program.cs
Normal file
14
PC2Player/PC2Player.Mac/Program.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using Eto.Forms;
|
||||
|
||||
namespace PC2Player.Mac
|
||||
{
|
||||
class Program
|
||||
{
|
||||
[STAThread]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
new Application(Eto.Platforms.Mac64).Run(new MainForm());
|
||||
}
|
||||
}
|
||||
}
|
16
PC2Player/PC2Player.Wpf/PC2Player.Wpf.csproj
Normal file
16
PC2Player/PC2Player.Wpf/PC2Player.Wpf.csproj
Normal file
|
@ -0,0 +1,16 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PC2Player\PC2Player.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Eto.Platform.Wpf" Version="2.9.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
14
PC2Player/PC2Player.Wpf/Program.cs
Normal file
14
PC2Player/PC2Player.Wpf/Program.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using Eto.Forms;
|
||||
|
||||
namespace PC2Player.Wpf
|
||||
{
|
||||
class Program
|
||||
{
|
||||
[STAThread]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
new Application(Eto.Platforms.Wpf).Run(new MainForm());
|
||||
}
|
||||
}
|
||||
}
|
57
PC2Player/PC2Player/MainForm.cs
Normal file
57
PC2Player/PC2Player/MainForm.cs
Normal file
|
@ -0,0 +1,57 @@
|
|||
using System;
|
||||
using Eto.Forms;
|
||||
using Eto.Drawing;
|
||||
|
||||
namespace PC2Player
|
||||
{
|
||||
public partial class MainForm : Form
|
||||
{
|
||||
public MainForm()
|
||||
{
|
||||
Title = "My Eto Form";
|
||||
MinimumSize = new Size(200, 200);
|
||||
|
||||
Content = new StackLayout
|
||||
{
|
||||
Padding = 10,
|
||||
Items =
|
||||
{
|
||||
"Hello World!",
|
||||
// add more controls here
|
||||
}
|
||||
};
|
||||
|
||||
// create a few commands that can be used for the menu and toolbar
|
||||
var clickMe = new Command { MenuText = "Click Me!", ToolBarText = "Click Me!" };
|
||||
clickMe.Executed += (sender, e) => MessageBox.Show(this, "I was clicked!");
|
||||
|
||||
var quitCommand = new Command { MenuText = "Quit", Shortcut = Application.Instance.CommonModifier | Keys.Q };
|
||||
quitCommand.Executed += (sender, e) => Application.Instance.Quit();
|
||||
|
||||
var aboutCommand = new Command { MenuText = "About..." };
|
||||
aboutCommand.Executed += (sender, e) => new AboutDialog().ShowDialog(this);
|
||||
|
||||
// create menu
|
||||
Menu = new MenuBar
|
||||
{
|
||||
Items =
|
||||
{
|
||||
// File submenu
|
||||
new SubMenuItem { Text = "&File", Items = { clickMe } },
|
||||
// new SubMenuItem { Text = "&Edit", Items = { /* commands/items */ } },
|
||||
// new SubMenuItem { Text = "&View", Items = { /* commands/items */ } },
|
||||
},
|
||||
ApplicationItems =
|
||||
{
|
||||
// application (OS X) or file menu (others)
|
||||
new ButtonMenuItem { Text = "&Preferences..." },
|
||||
},
|
||||
QuitItem = quitCommand,
|
||||
AboutItem = aboutCommand
|
||||
};
|
||||
|
||||
// create toolbar
|
||||
ToolBar = new ToolBar { Items = { clickMe } };
|
||||
}
|
||||
}
|
||||
}
|
11
PC2Player/PC2Player/PC2Player.csproj
Normal file
11
PC2Player/PC2Player/PC2Player.csproj
Normal file
|
@ -0,0 +1,11 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Eto.Forms" Version="2.9.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue