make all private flyout methods protected virtual
This commit is contained in:
@@ -77,7 +77,7 @@ public partial class RadFlyoutBase : UserControl
|
|||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FlyoutDialogBase_ParentChanged(object? sender, EventArgs e)
|
protected virtual void FlyoutDialogBase_ParentChanged(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var frm = FindForm();
|
var frm = FindForm();
|
||||||
|
|
||||||
@@ -112,18 +112,18 @@ public partial class RadFlyoutBase : UserControl
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetShowTitlePanel()
|
protected virtual void SetShowTitlePanel()
|
||||||
{
|
{
|
||||||
tableLayoutPanel_TitlePanel.Visible = !string.IsNullOrWhiteSpace(radLabel_Title.Text) || radLabel_Title.SvgImage != null;
|
tableLayoutPanel_TitlePanel.Visible = !string.IsNullOrWhiteSpace(radLabel_Title.Text) || radLabel_Title.SvgImage != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RadButton_Confirm_Click(object sender, EventArgs e)
|
protected virtual void RadButton_Confirm_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (ValidateOK())
|
if (ValidateOK())
|
||||||
Close(DialogResult.OK);
|
Close(DialogResult.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RadButton_Cancel_Click(object sender, EventArgs e)
|
protected virtual void RadButton_Cancel_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Close(DialogResult.Cancel);
|
Close(DialogResult.Cancel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,18 +76,18 @@ public partial class FlyoutBase : UserControl
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetShowTitlePanel()
|
protected virtual void SetShowTitlePanel()
|
||||||
{
|
{
|
||||||
tableLayoutPanel_TitlePanel.Visible = !string.IsNullOrWhiteSpace(label_Title.Text);
|
tableLayoutPanel_TitlePanel.Visible = !string.IsNullOrWhiteSpace(label_Title.Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Button_Accept_Click(object sender, System.EventArgs e)
|
protected virtual void Button_Accept_Click(object sender, System.EventArgs e)
|
||||||
{
|
{
|
||||||
if (ValidateOK())
|
if (ValidateOK())
|
||||||
Close(DialogResult.OK);
|
Close(DialogResult.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Button_Cancel_Click(object sender, System.EventArgs e)
|
protected virtual void Button_Cancel_Click(object sender, System.EventArgs e)
|
||||||
{
|
{
|
||||||
Close(DialogResult.Cancel);
|
Close(DialogResult.Cancel);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user