AlphaFramework API  1.0.3
Public Member Functions | Public Attributes | List of all members
AlphaFramework.Editor.World.Dialogs.SelectTemplateDialog< T > Class Template Reference

Dialog for selecting Template<T>es (with a preview pane). More...

Inheritance diagram for AlphaFramework.Editor.World.Dialogs.SelectTemplateDialog< T >:
NanoByte::Common::Controls::OKCancelDialog

Public Member Functions

 SelectTemplateDialog (NamedCollection< T > templates)
 Creates a new Template<T> selection dialog More...
 

Public Attributes

string SelectedTemplate => _templateList.SelectedEntry?.Name
 The name of the Template<T> the user selected; null if none. More...
 

Additional Inherited Members

- Protected Member Functions inherited from NanoByte::Common::Controls::OKCancelDialog
virtual void OnOKClicked ()
 
virtual void OnCancelClicked ()
 
override void Dispose (bool disposing)
 

Detailed Description

Dialog for selecting Template<T>es (with a preview pane).

Template Parameters
TThe type of Template<T>es to select.

This dialog is a modal dialog.Communication is handled via the DialogResult and properties (SelectedTemplate)

Type Constraints
T :Template<T> 

Constructor & Destructor Documentation

◆ SelectTemplateDialog()

Creates a new Template<T> selection dialog

Parameters
templatesThe list of Template<T>es to choose from

Member Data Documentation

◆ SelectedTemplate

string AlphaFramework.Editor.World.Dialogs.SelectTemplateDialog< T >.SelectedTemplate => _templateList.SelectedEntry?.Name

The name of the Template<T> the user selected; null if none.


The documentation for this class was generated from the following file: