Exemplo n.º 1
0
    protected override void OnStartup (StartupEventArgs eventArgs)
    {
      if (eventArgs.NotNull ()) {
        if (eventArgs.Args.Length > 0) {
          var key = eventArgs.Args [0];

          if (key.Contains ("Module.Settings")) {
            Settings.Properties.Settings.Default.Shutdown = false;
            Settings.Properties.Settings.Default.Save ();

            rr.Library.Types.TSingleInstance.Make ();

            base.OnStartup (eventArgs);
          }

          else {
            Shutdown ();
          }
        }

        else {
          Shutdown ();
        }
      }
    }
Exemplo n.º 2
0
    protected override void OnStartup (StartupEventArgs eventArgs)
    {
      if (eventArgs.NotNull ()) {
        if (eventArgs.Args.Length > 0) {
          var key = eventArgs.Args [0];

          if (key.Contains ("Gadget.Test")) {
            rr.Library.Types.TSingleInstance.Make ();

            base.OnStartup (eventArgs);
          }

          else {
            Shutdown ();
          }
        }

        else {
          Shutdown ();
        }
      }
    }