Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ScriptTab.xaml.cs
2using System;
3using System.Windows;
4using System.Windows.Controls;
5using System.Windows.Documents;
6using System.Windows.Input;
7using Waher.Events;
8
9namespace LegalLab.Tabs
10{
14 public partial class ScriptTab : UserControl
15 {
16 private static ScriptModel scriptModel;
17
18 public ScriptTab()
19 {
21 }
22
23 protected override async void OnInitialized(EventArgs e)
24 {
25 try
26 {
27 base.OnInitialized(e);
28
29 scriptModel = await MainWindow.InstantiateModel<ScriptModel>(this.HistoryPanel);
30 }
31 catch (Exception ex)
32 {
33 Log.Exception(ex);
34 }
35 }
36
37 private void OpenScriptReference(object sender, RoutedEventArgs e)
38 {
39 if (sender is Hyperlink Link)
40 MainWindow.OpenUrl(Link.NavigateUri);
41 }
42
43 private void InputPreviewKeyDown(object sender, KeyEventArgs e)
44 {
45 scriptModel?.InputPreviewKeyDown(e);
46 }
47 }
48}
Static class managing the application event log. Applications and services log events on this static ...
Definition: Log.cs:13
static void Exception(Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
Logs an exception. Event type will be determined by the severity of the exception.
Definition: Log.cs:1647