Added designer support

This commit is contained in:
John Tur 2019-04-08 20:09:47 -04:00
parent 22a2886bed
commit 86fc6b56d9
5 changed files with 56 additions and 18 deletions

View file

@ -1,8 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFrameworks>net472;netcoreapp3.0</TargetFrameworks>
<UseWindowsForms>true</UseWindowsForms>
<Version>2.0.3.0</Version>
<AssemblyTitle>Histacom2.Engine</AssemblyTitle>
<Copyright>(C) Michael Webb and contributors, 2017-2019</Copyright>
</PropertyGroup>
<ItemGroup>
@ -10,18 +13,19 @@
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<Compile Update="Template\AboutBox*.cs;
Template\DropDownItem.cs;
Template\Infobox95.cs;
UI\ClassicTextbox.cs;
UI\ClassicDropDown.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Template\*Overlay.cs;
Template\Win*.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
</Project>

View file

@ -2,8 +2,11 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFrameworks>net472;netcoreapp3.0</TargetFrameworks>
<UseWindowsForms>true</UseWindowsForms>
<Version>2.0.3.0</Version>
<AssemblyTitle>Histacom2.Engine</AssemblyTitle>
<Copyright>(C) Michael Webb and contributors, 2017-2019</Copyright>
</PropertyGroup>
<ItemGroup>
@ -15,4 +18,39 @@
<HintPath>..\PinkieControls.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Update="TitleScreen.cs;
SeizureWarning.cs;
AchievementScreen.cs;
AchievementBox.cs;
SaveDialogs\LoadGameDialog.cs;
SaveDialogs\NewGameDialog.cs;
SaveDialogs\SaveFileTroubleShooter.cs;
OS\Win95\Windows95.cs;
OS\Win98\Windows98.cs;
OS\WinME\WinME.cs;
OS\WinXPBad\VirusLabel.cs;
OS\WinXPBad\WinXPBad.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="OS\Win2K\Win2KApps\SurviveTheDay.cs;
OS\Win95\Windows95TaskbarItem.cs;
OS\Win95\Win95Apps\*.cs;
OS\Win95\Win95Apps\12padamsViruses\*.cs;
OS\Win95\Win95Apps\IE3Sites\*.cs;
OS\Win95\Win95Apps\Minesweeper\CustomMinefield.cs;
OS\Win95\Win95Apps\Minesweeper\WinClassicMinesweeper.cs;
OS\Win95\Win95Apps\Minesweeper\MineBestTimes.cs;
OS\Win98\Win98Apps\AddressBook\*.cs;
OS\Win98\Win98Apps\IE4Sites\*.cs;
OS\Win98\Win98Apps\*.cs;
OS\WinXPBad\WinClassic*.cs;
GlobalPrograms\*.cs;
GlobalPrograms\InstallerPanes\*.cs">
<SubType>UserControl</SubType>
</Compile>
</ItemGroup>
</Project>

View file

@ -1,10 +1,6 @@
using Histacom2.Engine;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Histacom2.OS.Win95

View file

@ -209,7 +209,7 @@ private void helpItemClick(object sender, EventArgs e) {
#endregion
private void gameversion_MouseHover(object sender, EventArgs e) {
gameversion.Text = "There are no easter eggs here!";
gameversion.Text = $"Running on {Assembly.GetEntryAssembly().GetCustomAttribute<System.Runtime.Versioning.TargetFrameworkAttribute>().FrameworkName}";
}
private void gameversion_MouseLeave(object sender, EventArgs e) {