适应C#8.0语法
This commit is contained in:
parent
922c52914c
commit
b33e77975d
@ -748,11 +748,6 @@ namespace Sunny.UI
|
||||
|
||||
public UILineSeries Series { get; set; }
|
||||
|
||||
public SeriesDataPoint()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public SeriesDataPoint(UILineSeries series, double x, double y)
|
||||
{
|
||||
X = x;
|
||||
|
@ -160,7 +160,7 @@ namespace Sunny.UI
|
||||
|
||||
//当右键菜单未绑定ImageList,并且ImageIndex>0时,将ImageIndex绑定为Symbol绘制
|
||||
ToolStripItem item = e.Item;
|
||||
while (item.Owner is not ContextMenuStrip)
|
||||
while (!(item.Owner is ContextMenuStrip))
|
||||
{
|
||||
if (item.Owner is ToolStripDropDownMenu)
|
||||
item = item.OwnerItem;
|
||||
|
@ -39,7 +39,7 @@ namespace Sunny.UI
|
||||
/// </summary>
|
||||
public static class FontImageHelper
|
||||
{
|
||||
public static readonly Dictionary<UISymbolType, FontImages> Fonts = new();
|
||||
public static readonly Dictionary<UISymbolType, FontImages> Fonts = new Dictionary<UISymbolType, FontImages>();
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
|
@ -17,9 +17,9 @@ namespace Sunny.UI
|
||||
|
||||
static UIFormServiceHelper()
|
||||
{
|
||||
WaitFormService = new();
|
||||
ProcessFormService = new();
|
||||
StatusFormService = new();
|
||||
WaitFormService = new UIWaitFormService();
|
||||
ProcessFormService = new UIProcessIndicatorFormService();
|
||||
StatusFormService = new UIStatusFormService();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net8.0-windows;net7.0-windows;net6.0-windows;net472;net40</TargetFrameworks>
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<ProjectGuid>{AB1CB247-E20B-4CBE-B269-570ADDD96C53}</ProjectGuid>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<RootNamespace>Sunny.UI</RootNamespace>
|
||||
|
Loading…
x
Reference in New Issue
Block a user