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