RunInSta() public method

public RunInSta ( Action userDelegate ) : void
userDelegate Action
return void
 public void LaunchEmpty()
 {
     var runner = new CrossThreadRunner();
     runner.RunInSta(() =>
                         {
                             var configureWindow = new ConfigureWindow(new ConfigureWindowModel());
                             configureWindow.ShowDialog();
                         });
 }
Ejemplo n.º 2
0
    public void LaunchEmpty()
    {
        var runner = new CrossThreadRunner();

        runner.RunInSta(() =>
        {
            var configureWindow = new ConfigureWindow(new ConfigureWindowModel());
            configureWindow.ShowDialog();
        });
    }
 public void Launch()
 {
     var exception = GetException();
     var model = new ExceptionWindowModel
                                    {
                                        ExceptionText = exception.ExceptionHierarchyToString(),
                                    };
     var runner = new CrossThreadRunner();
     runner.RunInSta(() =>
                         {
                             var window = new ExceptionWindow(model);
                             window.ShowDialog();
                         });
 }
Ejemplo n.º 4
0
    public void Launch()
    {
        var exception = GetException();
        var model     = new ExceptionWindowModel
        {
            ExceptionText = exception.ExceptionHierarchyToString(),
        };
        var runner = new CrossThreadRunner();

        runner.RunInSta(() =>
        {
            var window = new ExceptionWindow(model);
            window.ShowDialog();
        });
    }
 public void LaunchExisting()
 {
     var runner = new CrossThreadRunner();
     runner.RunInSta(() =>
                         {
                             var configureWindow = new ConfigureWindow
                                 (new ConfigureWindowModel
                                      {
                                          EventInvokerName = "Foo",
                                          DependenciesDirectory = "bar",
                                          MessageImportance = MessageImportance.High,
                                      }
                                 );
                             configureWindow.ShowDialog();
                         });
 }
Ejemplo n.º 6
0
 public void LaunchExisting()
 {
     var runner = new CrossThreadRunner();
     runner.RunInSta(() =>
                         {
                             var configureWindow = new ConfigureWindow
                                 (new ConfigureWindowModel
                                  	{
                                  		Overwrite = false,
                                  		IncludeDebugSymbols = false,
                                  		MessageImportance = MessageImportance.High,
                                  	}
                                 );
                             configureWindow.ShowDialog();
                         });
 }
Ejemplo n.º 7
0
    public void LaunchExisting()
    {
        var runner = new CrossThreadRunner();

        runner.RunInSta(() =>
        {
            var configureWindow = new ConfigureWindow
                                      (new ConfigureWindowModel
            {
                EventInvokerName      = "Foo",
                DependenciesDirectory = "bar",
                MessageImportance     = MessageImportance.High,
            }
                                      );
            configureWindow.ShowDialog();
        });
    }
    public void LaunchExisting()
    {
        var runner = new CrossThreadRunner();

        runner.RunInSta(() =>
        {
            var configureWindow = new ConfigureWindow
                                      (new ConfigureWindowModel
            {
                Overwrite           = false,
                IncludeDebugSymbols = false,
                MessageImportance   = MessageImportance.High,
            }
                                      );
            configureWindow.ShowDialog();
        });
    }