Represents the verification check box of a task dialog, shown at the left of the buttons.
A check box without text is not shown.
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET
Inheritance
public sealed class SftTaskDialogVerificationCheckBox : Softelvdm.SftStyleNET.SftTaskDialogControl;
Public NotInheritable Class SftTaskDialogVerificationCheckBox
Inherits Softelvdm.SftStyleNET.SftTaskDialogControl![]() | SftTaskDialogVerificationCheckBox | Initializes a new instance of the SftTaskDialogVerificationCheckBox class. |
![]() ![]() | BoundPage | Returns the page the element belongs to while the page is shown. |
![]() | Checked | Defines whether the check box is checked. |
![]() ![]() | Tag | Defines an object with data about the element. |
![]() | Text | Defines the text of the check box. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() | ToString | Returns the text of the check box. |
![]() | CheckedChanged | Occurs when the SftTaskDialogVerificationCheckBox.Checked property changes while the page is shown. |
labelResult.Text = "Message box: " + result;
}
private void buttonTaskDialog_Click(object sender, EventArgs e) {
SftTaskDialogPage page = new SftTaskDialogPage {
Caption = "Unsaved orders",
Heading = "What do you want to do with the 3 unsaved orders?",
Icon = SftTaskDialogIcon.Warning,
Verification = new SftTaskDialogVerificationCheckBox("&Do not ask again"),
Expander = new SftTaskDialogExpander("Order 1042, Order 1044 and Order 1045 have changes that are not saved."),
Footnote = new SftTaskDialogFootnote("Drafts are kept for 30 days."),
};
page.Buttons.Add(new SftTaskDialogCommandLinkButton("&Save the orders", "They are saved as drafts and can be completed later."));
page.Buttons.Add(new SftTaskDialogCommandLinkButton("D&iscard the orders", "The changes are lost."));
page.Buttons.Add(SftTaskDialogButton.Cancel);
SftTaskDialogButton clicked = SftTaskDialog.ShowDialog(this, page);
LabelResult.Text = "Message box: " + result.ToString()
End Sub
Private Sub ButtonTaskDialog_Click(ByVal sender As Object, ByVal e As EventArgs) Handles ButtonTaskDialog.Click
Dim page As New SftTaskDialogPage()
page.Caption = "Unsaved orders"
page.Heading = "What do you want to do with the 3 unsaved orders?"
page.Icon = SftTaskDialogIcon.Warning
page.Verification = New SftTaskDialogVerificationCheckBox("&Do not ask again")
page.Expander = New SftTaskDialogExpander("Order 1042, Order 1044 and Order 1045 have changes that are not saved.")
page.Footnote = New SftTaskDialogFootnote("Drafts are kept for 30 days.")
page.Buttons.Add(New SftTaskDialogCommandLinkButton("&Save the orders", "They are saved as drafts and can be completed later."))
page.Buttons.Add(New SftTaskDialogCommandLinkButton("D&iscard the orders", "The changes are lost."))
page.Buttons.Add(SftTaskDialogButton.Cancel)
Dim clicked As SftTaskDialogButton = SftTaskDialog.ShowDialog(Me, page)
Dim text As String = "closed"See Also Classes | SftStyle/NET 3.0