some more publics

This commit is contained in:
Pilzinsel64
2025-01-14 08:52:15 +01:00
parent 2d10424d13
commit 29fddff6f6
2 changed files with 37 additions and 26 deletions

View File

@@ -1,43 +1,49 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Security.Policy;
namespace Pilz.UI.Dialogs;
public partial class FlyoutBase : UserControl
{
private TableLayoutPanel tableLayoutPanel_TitlePanel;
private Label label_Title;
private TableLayoutPanel tableLayoutPanel_ActionPanel;
private Button button_Cancel;
private Button button_Accept;
protected TableLayoutPanel tableLayoutPanel_TitlePanel;
protected Label label_Title;
protected TableLayoutPanel tableLayoutPanel_ActionPanel;
protected Button button_Cancel;
protected Button button_Accept;
[ReadOnly(true)]
public DialogResult Result { get; protected set; }
public bool RegisterDialogAccept { get; set; } = true;
public bool RegisterDialogCancel { get; set; } = false;
[DefaultValue(true)]
protected bool ActionPanelVisible
public bool RegisterDialogAccept { get; set; } = true;
[DefaultValue(true)]
public bool RegisterDialogCancel { get; set; } = true;
[DefaultValue(true)]
public bool ActionPanelVisible
{
get => tableLayoutPanel_ActionPanel.Visible;
set => tableLayoutPanel_ActionPanel.Visible = value;
}
[DefaultValue(true)]
protected bool CancelButtonVisible
public bool CancelButtonVisible
{
get => button_Cancel.Visible;
set => button_Cancel.Visible = value;
}
[DefaultValue(true)]
protected bool CancelButtonEnable
public bool CancelButtonEnable
{
get => button_Cancel.Enabled;
set => button_Cancel.Enabled = value;
}
[DefaultValue(true)]
protected bool ConfirmButtonEnable
public bool ConfirmButtonEnable
{
get => button_Accept.Enabled;
set => button_Accept.Enabled = value;