C# Class ScreenToGif.Windows.Other.Dialog

Interaction logic for Dialog.xaml
Inheritance: System.Windows.Window
Exibir arquivo Open project: dbremner/ScreenToGif Class Usage Examples

Public Methods

Method Description
Ask ( string title, string instruction, string observation, Icons icon = Icons.Error ) : bool

Shows a Yes/No dialog.

Dialog ( ) : System

Default contructor.

Ok ( string title, string instruction, string observation, Icons icon = Icons.Error ) : bool

Shows a Ok dialog.

OkCancel ( string title, string instruction, string observation, Icons icon = Icons.Error ) : bool

Shows a Ok/Cancel dialog.

Private Methods

Method Description
FalseActionButton_Click ( object sender, RoutedEventArgs e ) : void
GetIcon ( Icons icon ) : System.Windows.Controls.Canvas
PrepareAsk ( string title, string instruction, string observation, Icons icon ) : void
PrepareOk ( string title, string instruction, string observation, Icons icon ) : void
PrepareOkCancel ( string title, string instruction, string observation, Icons icon ) : void
TrueActionButton_Click ( object sender, RoutedEventArgs e ) : void

Method Details

Ask() public static method

Shows a Yes/No dialog.
public static Ask ( string title, string instruction, string observation, Icons icon = Icons.Error ) : bool
title string The title of the window.
instruction string The main instruction.
observation string A complementar observation.
icon Icons The image of the dialog.
return bool

Dialog() public method

Default contructor.
public Dialog ( ) : System
return System

Ok() public static method

Shows a Ok dialog.
public static Ok ( string title, string instruction, string observation, Icons icon = Icons.Error ) : bool
title string The title of the window.
instruction string The main instruction.
observation string A complementar observation.
icon Icons The image of the dialog.
return bool

OkCancel() public static method

Shows a Ok/Cancel dialog.
public static OkCancel ( string title, string instruction, string observation, Icons icon = Icons.Error ) : bool
title string The title of the window.
instruction string The main instruction.
observation string A complementar observation.
icon Icons The image of the dialog.
return bool