-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.cs
41 lines (35 loc) · 1.04 KB
/
MainWindow.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
using Intrahealth.Common.IHProfBL.Interop;
using System.Windows;
namespace ProfileWpfApp1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainViewModel MainVM { get; set; }
public bool IsCapturing { get; private set; }
private ISProfile _profile;
public MainWindow(ISProfile profile)
{
InitializeComponent();
MainVM = new MainViewModel();
DataContext = MainVM;
_profile = profile;
}
private void Button_Click(object sender, RoutedEventArgs e)
{
if (_profile != null)
{
_profile.CallMacro("TestFromWPF");
}
}
public void SetPatient(ISPatient p)
{
MainVM.Patient = p;
ISAppointmentFilter flt = _profile.CreateAppointmentFilter();
flt.PatientId = p.ID;
MainVM.Appointments = _profile.LoadAppointments(flt);
}
}
}