Interaction logic for UpdateInKindItem.xaml
Inheritance: System.Windows.Window
        private void Edit_InKindItem(object sender, MouseButtonEventArgs e)
        {
            DataGrid dg = sender as DataGrid;

            InKindItem       p  = (InKindItem)dg.SelectedItems[0]; // OR:  Patient p = (Patient)dg.SelectedItem;
            UpdateInKindItem up = new UpdateInKindItem(p);

            up.DeleteItem.IsEnabled      = false;
            up.DateRecieved.SelectedDate = p.DateRecieved;
            up.ShowDialog();
        }
        private void Edit_InKindItem(object sender, MouseButtonEventArgs e)
        {
            DataGrid dg = sender as DataGrid;

            InKindItem p = (InKindItem)dg.SelectedItems[0]; // OR:  Patient p = (Patient)dg.SelectedItem;
            UpdateInKindItem up = new UpdateInKindItem(p);
            up.DeleteItem.IsEnabled = false;
            up.DateRecieved.SelectedDate = p.DateRecieved;
            up.ShowDialog();
				
        }