private void OnToggleOff() { if (view != null) { view.Dismiss(); view = null; } }
private void OnToggleOn() { if (view == null) { view = new SettingsView(() => { launcher.SetFalse(true); }); } view.Show(); }