-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSimulatorWindow.xaml.cs
55 lines (48 loc) · 1.56 KB
/
SimulatorWindow.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Windows;
using System.Activities.Presentation.Services;
using System.Activities.Presentation.Model;
using System.Activities.Presentation.View;
using System.Activities.Presentation.Debug;
using System.Activities;
namespace Business.WorkflowDebugger
{
/// <summary>
/// Interaction logic for SimulatorWindow.xaml
/// </summary>
public partial class SimulatorWindow : Window
{
public SimulatorWindow()
{
InitializeComponent();
}
private void btnRunLoadedWorkflow_Click(object sender, RoutedEventArgs e)
{
try
{
WFHost.RunWorkflow();
}
catch (Exception ex)
{
System.Windows.MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
private void fileMenuExit_Click(object sender, RoutedEventArgs e)
{
App.Current.Shutdown();
}
private void fileMenuItem_Click_LoadWorkflow(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFileDialog openFileDialog = new Microsoft.Win32.OpenFileDialog();
if (openFileDialog.ShowDialog(this).Value)
{
WFHost.WorkflowFilePath = openFileDialog.FileName;
WFHost.AddWorkflowDesigner();
}
}
private void WFHost_Loaded(object sender, RoutedEventArgs e)
{
}
}
}