Provides data for the SftMask.CalculatorOpening event.
An event handler can change the operator, or set Cancel to keep the calculator closed.
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET
Inheritance
public class CalculatorOpeningEventArgs : System.ComponentModel.CancelEventArgs;
Public Class CalculatorOpeningEventArgs
Inherits System.ComponentModel.CancelEventArgsThis class cannot be instantiated.
![]() ![]() | Cancel | Gets or sets a value indicating whether the event should be canceled. |
![]() | Operator | Defines the operator the calculator starts with. |
![]() ![]() ![]() | Empty | Provides a value to use with events that do not have event data. |
![]() ![]() | 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 a string that represents the current object. |
e.Cancel = sftMask1.Value.HasValue && sftMask1.Value.Value > 10000;
DumpValues("sftMask1.CustomValidation" + (e.Cancel ? " (over 10,000, refused)" : ""), e);
}
private void sftMask1_UpDownPress(object sender, UpDownPressEventArgs e) {
DumpValues("sftMask1.UpDownPress", e);
}
private void sftMask1_CalculatorOpening(object sender, CalculatorOpeningEventArgs e) {
e.Cancel = checkBlock.Checked;
DumpValues("sftMask1.CalculatorOpening" + (e.Cancel ? " (canceled)" : ""), e);
}
private void sftMask1_DropDownOpened(object sender, DropDownEventArgs e) {
DumpValues("sftMask1.DropDownOpened", e);
}
e.Cancel = SftMask1.Value.HasValue AndAlso SftMask1.Value.Value > 10000
DumpValues("SftMask1.CustomValidation" + If(e.Cancel, " (over 10,000, refused)", ""), e)
End Sub
Private Sub SftMask1_UpDownPress(ByVal sender As Object, ByVal e As UpDownPressEventArgs) Handles SftMask1.UpDownPress
DumpValues("SftMask1.UpDownPress", e)
End Sub
Private Sub SftMask1_CalculatorOpening(ByVal sender As Object, ByVal e As CalculatorOpeningEventArgs) Handles SftMask1.CalculatorOpening
e.Cancel = CheckBlock.Checked
DumpValues("SftMask1.CalculatorOpening" + If(e.Cancel, " (canceled)", ""), e)
End Sub
Private Sub SftMask1_DropDownOpened(ByVal sender As Object, ByVal e As DropDownEventArgs) Handles SftMask1.DropDownOpened
DumpValues("SftMask1.DropDownOpened", e)
End SubSee Also Classes | SftMask/NET 3.0