Table of Contents

Method CreateAndRun

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

CreateAndRun(Func<Window>, Action?)

Creates application and main form, runs and disposes them.

public static void CreateAndRun(Func<Window> createFunc, Action? runAction = null)

Parameters

createFunc Func<Window>

Function which creates main form.

runAction Action

Runs action after main form is created.

Exceptions

Exception

If application is already created.