Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LegalLab.MainWindow Class Reference

Interaction logic for MainWindow.xaml More...

Inheritance diagram for LegalLab.MainWindow:

Public Member Functions

void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 

Static Public Member Functions

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...
 

Protected Member Functions

override void OnClosed (EventArgs e)
 

Properties

static WindowSizeModel WindowSizeModel [get]
 Window Size model More...
 
static NetworkModel NetworkModel [get]
 Network model More...
 
static DesignModel DesignModel [get]
 Design model More...
 

Detailed Description

Interaction logic for MainWindow.xaml

MainWindow

Definition at line 42 of file MainWindow.xaml.cs.

Constructor & Destructor Documentation

◆ MainWindow()

LegalLab.MainWindow.MainWindow ( )

Definition at line 54 of file MainWindow.xaml.cs.

Member Function Documentation

◆ ErrorBox()

static void LegalLab.MainWindow.ErrorBox ( string  ErrorMessage)
static

Displays an error message on the screen, on the main UI thread.

Parameters
ErrorMessageError message

Definition at line 220 of file MainWindow.xaml.cs.

◆ InitializeComponent() [1/4]

void LegalLab.MainWindow.InitializeComponent ( )

InitializeComponent

Definition at line 148 of file MainWindow.g.cs.

◆ InitializeComponent() [2/4]

void LegalLab.MainWindow.InitializeComponent ( )

InitializeComponent

Definition at line 148 of file MainWindow.g.i.cs.

◆ InitializeComponent() [3/4]

void LegalLab.MainWindow.InitializeComponent ( )

InitializeComponent

Definition at line 148 of file MainWindow.g.cs.

◆ InitializeComponent() [4/4]

void LegalLab.MainWindow.InitializeComponent ( )

InitializeComponent

Definition at line 147 of file MainWindow.g.i.cs.

◆ InstantiateModel< T >()

static async Task< T > LegalLab.MainWindow.InstantiateModel< T > ( params object[]  Arguments)
static

Instantiates a view model.

Template Parameters
TType of view model
Parameters
ArgumentsOptional list of arguments.
Returns
Instantiated view model.
Type Constraints
T :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
TextText message
CaptionCaption text
ButtonButton text
IconIcon to display
Returns
Button pressed.

Definition at line 255 of file MainWindow.xaml.cs.

◆ MouseDefault()

static void LegalLab.MainWindow.MouseDefault ( )
static

Returns to default mouse pointer.

Definition at line 324 of file MainWindow.xaml.cs.

◆ 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

Definition at line 155 of file MainWindow.xaml.cs.

◆ OpenUrl()

static void LegalLab.MainWindow.OpenUrl ( Uri  Url)
static

Opens an URL in the currently selected browser using the Shell.

Parameters
UrlURL to open

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
TitleDialog title.
LabelLabel to display to the user.
TextPre-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
TitleDialog title.
LabelLabel to display to the user.
TextPre-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
TitleDialog title.
LabelLabel to display to the user.
TextPre-filled input value.
OkButtonText of the OK button.
CancelButtonText 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
MessageStatus message

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
MessageSuccess message

Definition at line 229 of file MainWindow.xaml.cs.

◆ UpdateGui() [1/2]

static void LegalLab.MainWindow.UpdateGui ( GuiDelegate  Method)
static

Calls a method from the Main UI thread.

Parameters
MethodMethod to call.

Definition at line 349 of file MainWindow.xaml.cs.

◆ UpdateGui() [2/2]

static void LegalLab.MainWindow.UpdateGui ( GuiDelegateWithParameter  Method,
object  State 
)
static

Calls a method from the Main UI thread.

Parameters
MethodMethod to call.
StateState object to pass on to the callback method.

Definition at line 359 of file MainWindow.xaml.cs.

Property Documentation

◆ DesignModel

DesignModel LegalLab.MainWindow.DesignModel
staticget

Design model

Definition at line 210 of file MainWindow.xaml.cs.

◆ NetworkModel

NetworkModel LegalLab.MainWindow.NetworkModel
staticget

Network model

Definition at line 205 of file MainWindow.xaml.cs.

◆ WindowSizeModel

WindowSizeModel LegalLab.MainWindow.WindowSizeModel
staticget

Window Size model

Definition at line 200 of file MainWindow.xaml.cs.


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