예제 #1
0
        public virtual void Start()
        {
            var s = this.shell;

            UiHelpers.WriteSync(
                s,
                () =>
            {
                s.SwitchUi(
                    this.ui);
            });
        }
예제 #2
0
 public override void Start()
 {
     UiHelpers.WriteSync(
         this.ui,
         () =>
     {
         try
         {
             this.ui.Display();
         }
         catch
         {
             // assume already visible, swallow
         }
     });
 }
예제 #3
0
 public override void Stop()
 {
     UiHelpers.WriteSync(
         this.ui,
         this.ui.Hide);
 }