// Event raiser protected virtual void OnSwitchChanged(bool toggled) { SwitchChanged?.Invoke(this, new WXOptionsDialogEventArgs() { SaveData = toggled }); }
public void OnDestroy() { OnSwitchChanged = null; }