Move all WinForms-related code to W32
This commit is contained in:
parent
1d20e11439
commit
214f0a53ef
@ -1,11 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>CC_Functions.Misc</RootNamespace>
|
||||
<AssemblyName>CC_Functions.Misc</AssemblyName>
|
||||
<LangVersion>8</LangVersion>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
|
||||
<Deterministic>false</Deterministic>
|
||||
<PackageId>CC-Functions.Misc</PackageId>
|
||||
<Title>CC-Functions.Misc</Title>
|
||||
@ -19,6 +18,7 @@
|
||||
<FileVersion>1.0.0.0</FileVersion>
|
||||
<VersionSuffix>0.0</VersionSuffix>
|
||||
<PackageVersion>1.1.$(VersionSuffix)</PackageVersion>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DocumentationFile>bin\Debug\Misc.xml</DocumentationFile>
|
||||
@ -26,14 +26,6 @@
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DocumentationFile>bin\Release\Misc.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="DataGridViewNumericUpDownEditingControl.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Update="RotatingIndicator.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="HIDClasses.txt" />
|
||||
</ItemGroup>
|
||||
|
@ -4,9 +4,8 @@ using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32.Forms
|
||||
{
|
||||
public class DataGridViewNumericUpDownCell : DataGridViewTextBoxCell
|
||||
{
|
@ -2,9 +2,8 @@ using System;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32.Forms
|
||||
{
|
||||
/// <summary>
|
||||
/// Custom column type dedicated to the DataGridViewNumericUpDownCell cell type.
|
@ -2,9 +2,8 @@ using System;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32.Forms
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the editing control for the DataGridViewNumericUpDownCell custom cell type.
|
@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32.Forms
|
||||
{
|
||||
public delegate void SetPropertyDelegate<TCtl, TProp>(TCtl control, Expression<Func<TCtl, TProp>> propexpr,
|
||||
TProp value) where TCtl : Control;
|
||||
@ -17,7 +16,7 @@ namespace CC_Functions.Misc
|
||||
public delegate TResult InvokeFuncDelegate<TCtl, TResult>(TCtl control, Delegate dlg, params object[] args)
|
||||
where TCtl : Control;
|
||||
|
||||
public static class Forms
|
||||
public static class Extensions
|
||||
{
|
||||
public static void SetProperty<TCtl, TProp>(this TCtl control, Expression<Func<TCtl, TProp>> propexpr,
|
||||
TProp value) where TCtl : Control
|
@ -2,10 +2,9 @@
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Windows.Forms;
|
||||
using Timer = System.Timers.Timer;
|
||||
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32.Forms
|
||||
{
|
||||
/// <summary>
|
||||
/// Animated control similar to update screens in Windows 8 and 10
|
@ -1,4 +1,4 @@
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32.Forms
|
||||
{
|
||||
partial class SelectBox<T>
|
||||
{
|
@ -1,8 +1,7 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32.Forms
|
||||
{
|
||||
internal partial class SelectBox<T> : Form
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace CC_Functions.Misc
|
||||
namespace CC_Functions.W32
|
||||
{
|
||||
public static class MiscFunctions
|
||||
{
|
@ -18,6 +18,14 @@
|
||||
<VersionSuffix>0.0</VersionSuffix>
|
||||
<PackageVersion>1.1.$(VersionSuffix)</PackageVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="Forms\DataGridViewNumericUpDownEditingControl.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Forms\RotatingIndicator.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DocumentationFile>bin\Debug\W32.xml</DocumentationFile>
|
||||
|
Reference in New Issue
Block a user