C# Класс Mono.Terminal.Dialog

A Dialog is a container that can also have a number of buttons at the bottom

Dialogs are containers that can have a set of buttons at the bottom. Dialogs are automatically centered on the screen, and on screen changes the buttons are relaid out.

To make the dialog box run until an option has been executed, you would typically create the dialog box and then call Application.Run on the Dialog instance.

Наследование: Frame
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddButton ( Button b ) : void

Adds a button to the dialog

ContainerMove ( int row, int col ) : void
Dialog ( int w, int h, string title ) : System

Public constructor.

DoSizeChanged ( ) : void
ErrorColors ( ) : void

Makes the default style for the dialog use the error colors.

GetBase ( int &row, int &col ) : void
Prepare ( ) : void
ProcessKey ( int key ) : bool
Redraw ( ) : void

Приватные методы

Метод Описание
LayoutButtons ( ) : void

Описание методов

AddButton() публичный Метод

Adds a button to the dialog
public AddButton ( Button b ) : void
b Button
Результат void

ContainerMove() публичный Метод

public ContainerMove ( int row, int col ) : void
row int
col int
Результат void

Dialog() публичный Метод

Public constructor.
public Dialog ( int w, int h, string title ) : System
w int
h int
title string
Результат System

DoSizeChanged() публичный Метод

public DoSizeChanged ( ) : void
Результат void

ErrorColors() публичный Метод

Makes the default style for the dialog use the error colors.
public ErrorColors ( ) : void
Результат void

GetBase() публичный Метод

public GetBase ( int &row, int &col ) : void
row int
col int
Результат void

Prepare() публичный Метод

public Prepare ( ) : void
Результат void

ProcessKey() публичный Метод

public ProcessKey ( int key ) : bool
key int
Результат bool

Redraw() публичный Метод

public Redraw ( ) : void
Результат void