make some projects compatible with netframework4.8 again
This commit is contained in:
@@ -84,11 +84,6 @@ public partial class FlyoutBase : UserControl
|
||||
ParentChanged += FlyoutBase_ParentChanged;
|
||||
}
|
||||
|
||||
[MemberNotNull(nameof(tableLayoutPanel_TitlePanel))]
|
||||
[MemberNotNull(nameof(label_Title))]
|
||||
[MemberNotNull(nameof(tableLayoutPanel_ActionPanel))]
|
||||
[MemberNotNull(nameof(button_Cancel))]
|
||||
[MemberNotNull(nameof(button_Accept))]
|
||||
private void InitializeComponent()
|
||||
{
|
||||
// button_Accept
|
||||
@@ -180,7 +175,7 @@ public partial class FlyoutBase : UserControl
|
||||
base.OnLoad(e);
|
||||
}
|
||||
|
||||
private void FlyoutBase_ParentChanged(object? sender, EventArgs e)
|
||||
private void FlyoutBase_ParentChanged(object sender, EventArgs e)
|
||||
{
|
||||
var frm = FindForm();
|
||||
if (frm != null)
|
||||
@@ -214,13 +209,13 @@ public partial class FlyoutBase : UserControl
|
||||
tableLayoutPanel_TitlePanel.Visible = !string.IsNullOrWhiteSpace(label_Title.Text);
|
||||
}
|
||||
|
||||
protected virtual void Button_Accept_Click(object? sender, EventArgs e)
|
||||
protected virtual void Button_Accept_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ValidateOK())
|
||||
Close(DialogResult.OK);
|
||||
}
|
||||
|
||||
protected virtual void Button_Cancel_Click(object? sender, EventArgs e)
|
||||
protected virtual void Button_Cancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close(DialogResult.Cancel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user