Interaction logic for MainWindow.xaml
More...
|
static async Task< T > | InstantiateModel< T > (params object[] Arguments) |
| Instantiates a view model. More...
|
|
static void | ErrorBox (string ErrorMessage) |
| Displays an error message on the screen, on the main UI thread. More...
|
|
static void | SuccessBox (string Message) |
| Displays a success message on the screen, on the main UI thread. More...
|
|
static void | ShowStatus (string Message) |
| Displays a status message on the screen, on the main UI thread. More...
|
|
static Task< MessageBoxResult > | MessageBox (string Text, string Caption, MessageBoxButton Button, MessageBoxImage Icon) |
| Displays a message box on the screen, on the main UI thread. More...
|
|
static string | PromptUser (string Title, string Label) |
| Prompts the user for input. More...
|
|
static string | PromptUser (string Title, string Label, string Text) |
| Prompts the user for input. More...
|
|
static string | PromptUser (string Title, string Label, string Text, string OkButton, string CancelButton) |
| Prompts the user for input. More...
|
|
static void | MouseDefault () |
| Returns to default mouse pointer. More...
|
|
static void | MouseHourglass () |
| Displays an hourglass cursor (or similar for waiting purposes). More...
|
|
static void | UpdateGui (GuiDelegate Method) |
| Calls a method from the Main UI thread. More...
|
|
static void | UpdateGui (GuiDelegateWithParameter Method, object State) |
| Calls a method from the Main UI thread. More...
|
|
static void | OpenUrl (Uri Url) |
| Opens an URL in the currently selected browser using the Shell. More...
|
|
Interaction logic for MainWindow.xaml
MainWindow
Definition at line 42 of file MainWindow.xaml.cs.
◆ MainWindow()
LegalLab.MainWindow.MainWindow |
( |
| ) |
|
◆ ErrorBox()
static void LegalLab.MainWindow.ErrorBox |
( |
string |
ErrorMessage | ) |
|
|
static |
Displays an error message on the screen, on the main UI thread.
- Parameters
-
ErrorMessage | Error message |
Definition at line 220 of file MainWindow.xaml.cs.
◆ InitializeComponent() [1/4]
void LegalLab.MainWindow.InitializeComponent |
( |
| ) |
|
◆ InitializeComponent() [2/4]
void LegalLab.MainWindow.InitializeComponent |
( |
| ) |
|
◆ InitializeComponent() [3/4]
void LegalLab.MainWindow.InitializeComponent |
( |
| ) |
|
◆ InitializeComponent() [4/4]
void LegalLab.MainWindow.InitializeComponent |
( |
| ) |
|
◆ InstantiateModel< T >()
static async Task< T > LegalLab.MainWindow.InstantiateModel< T > |
( |
params object[] |
Arguments | ) |
|
|
static |
Instantiates a view model.
- Template Parameters
-
- Parameters
-
Arguments | Optional list of arguments. |
- Returns
- Instantiated view model.
Definition at line 139 of file MainWindow.xaml.cs.
◆ MessageBox()
static Task< MessageBoxResult > LegalLab.MainWindow.MessageBox |
( |
string |
Text, |
|
|
string |
Caption, |
|
|
MessageBoxButton |
Button, |
|
|
MessageBoxImage |
Icon |
|
) |
| |
|
static |
Displays a message box on the screen, on the main UI thread.
- Parameters
-
Text | Text message |
Caption | Caption text |
Button | Button text |
Icon | Icon to display |
- Returns
- Button pressed.
Definition at line 255 of file MainWindow.xaml.cs.
◆ MouseDefault()
static void LegalLab.MainWindow.MouseDefault |
( |
| ) |
|
|
static |
◆ MouseHourglass()
static void LegalLab.MainWindow.MouseHourglass |
( |
| ) |
|
|
static |
Displays an hourglass cursor (or similar for waiting purposes).
Definition at line 336 of file MainWindow.xaml.cs.
◆ OnClosed()
override void LegalLab.MainWindow.OnClosed |
( |
EventArgs |
e | ) |
|
|
protected |
◆ OpenUrl()
static void LegalLab.MainWindow.OpenUrl |
( |
Uri |
Url | ) |
|
|
static |
Opens an URL in the currently selected browser using the Shell.
- Parameters
-
Definition at line 452 of file MainWindow.xaml.cs.
◆ PromptUser() [1/3]
static string LegalLab.MainWindow.PromptUser |
( |
string |
Title, |
|
|
string |
Label |
|
) |
| |
|
static |
Prompts the user for input.
- Parameters
-
Title | Dialog title. |
Label | Label to display to the user. |
Text | Pre-filled input value. |
- Returns
- Text input by the user, null if Cancel has been pressed.
Definition at line 276 of file MainWindow.xaml.cs.
◆ PromptUser() [2/3]
static string LegalLab.MainWindow.PromptUser |
( |
string |
Title, |
|
|
string |
Label, |
|
|
string |
Text |
|
) |
| |
|
static |
Prompts the user for input.
- Parameters
-
Title | Dialog title. |
Label | Label to display to the user. |
Text | Pre-filled input value. |
- Returns
- Text input by the user, null if Cancel has been pressed.
Definition at line 288 of file MainWindow.xaml.cs.
◆ PromptUser() [3/3]
static string LegalLab.MainWindow.PromptUser |
( |
string |
Title, |
|
|
string |
Label, |
|
|
string |
Text, |
|
|
string |
OkButton, |
|
|
string |
CancelButton |
|
) |
| |
|
static |
Prompts the user for input.
- Parameters
-
Title | Dialog title. |
Label | Label to display to the user. |
Text | Pre-filled input value. |
OkButton | Text of the OK button. |
CancelButton | Text of the Cancel button. |
- Returns
- Text input by the user, null if Cancel has been pressed.
Definition at line 302 of file MainWindow.xaml.cs.
◆ ShowStatus()
static void LegalLab.MainWindow.ShowStatus |
( |
string |
Message | ) |
|
|
static |
Displays a status message on the screen, on the main UI thread.
- Parameters
-
Definition at line 238 of file MainWindow.xaml.cs.
◆ SuccessBox()
static void LegalLab.MainWindow.SuccessBox |
( |
string |
Message | ) |
|
|
static |
Displays a success message on the screen, on the main UI thread.
- Parameters
-
Definition at line 229 of file MainWindow.xaml.cs.
◆ UpdateGui() [1/2]
static void LegalLab.MainWindow.UpdateGui |
( |
GuiDelegate |
Method | ) |
|
|
static |
◆ UpdateGui() [2/2]
Calls a method from the Main UI thread.
- Parameters
-
Method | Method to call. |
State | State object to pass on to the callback method. |
Definition at line 359 of file MainWindow.xaml.cs.
◆ DesignModel
◆ NetworkModel
◆ WindowSizeModel
The documentation for this class was generated from the following files: