Код: Выделить всё
Details
Код: Выделить всё
Button pressed = sender as Button;
var nestName = TypeDescriptor.GetProperties(pressed.DataContext)["nestName"].GetValue(pressed.DataContext);
var nestDate = TypeDescriptor.GetProperties(pressed.DataContext)["dueDate"].GetValue(pressed.DataContext);
var orderStatus = TypeDescriptor.GetProperties(pressed.DataContext)["orderStatus"].GetValue(pressed.DataContext);
NestStatus.Text = orderStatus.ToString();
NestName.Text = nestName.ToString();
SchedFor.Text = nestDate.ToString();