... I need peace

This commit is contained in:
2018-03-09 04:25:52 +01:00
parent 1efd8bc36d
commit 2be22d788b
47 changed files with 2044 additions and 11989 deletions

39
yaxwtui/MainWindow.cs Normal file
View File

@ -0,0 +1,39 @@
using Xwt;
namespace yaxwtui
{
public class MainWindow : Window
{
public MainWindow ()
{
Title = "yaxwtui";
Width = 400;
Height = 400;
Menu menu = new Menu ();
var file = new MenuItem ("_File");
file.SubMenu = new Menu ();
file.SubMenu.Items.Add (new MenuItem ("_Open"));
file.SubMenu.Items.Add (new MenuItem ("_New"));
MenuItem mi = new MenuItem ("_Close");
mi.Clicked += (sender, e) => Close ();
file.SubMenu.Items.Add (mi);
menu.Items.Add (file);
MainMenu = menu;
var sampleLabel = new Label ("yaxwtui");
Content = sampleLabel;
}
protected override bool OnCloseRequested ()
{
var allow_close = MessageDialog.Confirm ("yaxwtui will be closed", Command.Ok);
if (allow_close)
Application.Exit ();
return allow_close;
}
}
}

View File

@ -0,0 +1,27 @@
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("yaxwtui")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyright ("Paul Schneider")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
[assembly: AssemblyVersion ("1.0.*")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]

4
yaxwtui/packages.config Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xwt" version="0.2.78" targetFramework="net45" />
</packages>

44
yaxwtui/yaxwtui.csproj Normal file
View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6077BDD8-7EDB-4039-AF41-3CD8BA094FB2}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>yaxwtui</RootNamespace>
<AssemblyName>yaxwtui</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Xwt">
<HintPath>..\packages\Xwt.0.2.78\lib\net40\Xwt.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="MainWindow.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
</Project>