/// <summary> /// Causes the dialog to swap when the button is clicked. /// </summary> public override void OnClick() { if (Source.IsShown) { Source.SwapTo(Target); } }
/// <summary> /// Causes the dialog to swap as a result of a click or tap /// </summary> public override void RunMethod() { if (Source.IsShown) { Source.SwapTo(Target); } }