Exemplo n.º 1
0
        private void Threatment_Click(object sender, RoutedEventArgs e)
        {
            var SelectedPatient = ((MainViewModel)DataContext).SelectedPatient;

            if (SelectedPatient == null)
            {
                return;
            }
            var tvm = new ThreatmentViewModel

            {
                Patient = ((MainViewModel)DataContext).SelectedPatient
            };
            var th = new Threatment()
            {
                DataContext = tvm
            };

            th.ShowDialog();
        }
Exemplo n.º 2
0
 public Threatment()
 {
     InitializeComponent();
     tvm         = new ThreatmentViewModel();
     DataContext = tvm;
 }