Update project to .NET 8 and code improvements

This commit is contained in:
Stone_Red
2023-11-16 19:27:21 +01:00
parent adfedcb876
commit 2c883787f7
43 changed files with 2168 additions and 2790 deletions
+38 -39
View File
@@ -1,53 +1,52 @@
using System;
using System.Drawing;
namespace DesktopMagicPluginAPI
namespace DesktopMagicPluginAPI;
/// <summary>
/// Defines properties and methods that provide information about the main application.
/// </summary>
public interface IPluginData
{
/// <summary>
/// Defines properties and methods that provide information about the main application.
/// Gets the current font of the current theme.
/// </summary>
public interface IPluginData
{
/// <summary>
/// Gets the current font of the current theme.
/// </summary>
[Obsolete("Use the \"Theme\" property instead")]
string Font { get; }
[Obsolete("Use the \"Theme\" property instead")]
string Font { get; }
/// <summary>
/// Gets the current color of the current theme.
/// </summary>
[Obsolete("Use the \"Theme\" property instead")]
Color Color { get; }
/// <summary>
/// Gets the current color of the current theme.
/// </summary>
[Obsolete("Use the \"Theme\" property instead")]
Color Color { get; }
/// <summary>
/// Gets the current theme setting of the main application.
/// </summary>
ITheme Theme { get; }
/// <summary>
/// Gets the current theme setting of the main application.
/// </summary>
ITheme Theme { get; }
/// <summary>
/// Gets the window size of the plugin window.
/// </summary>
Size WindowSize { get; }
/// <summary>
/// Gets the window size of the plugin window.
/// </summary>
Size WindowSize { get; }
/// <summary>
/// Gets the window position of the plugin window.
/// </summary>
Point WindowPosition { get; }
/// <summary>
/// Gets the window position of the plugin window.
/// </summary>
Point WindowPosition { get; }
/// <summary>
/// Gets the name of the plugin.
/// </summary>
string PluginName { get; }
/// <summary>
/// Gets the name of the plugin.
/// </summary>
string PluginName { get; }
/// <summary>
/// Gets the path of the parent directory of the plugin.
/// </summary>
string PluginPath { get; }
/// <summary>
/// Gets the path of the parent directory of the plugin.
/// </summary>
string PluginPath { get; }
/// <summary>
/// Updates the plugin window.
/// </summary>
void UpdateWindow();
}
/// <summary>
/// Updates the plugin window.
/// </summary>
void UpdateWindow();
}