public void loadSrc(DustVisitTray src) { base.loadSrc(src); this.visitor = src.visitor; this.cmd = src.cmd; this.result = src.result; }
private void RaiseVisitCommand(IVisit visit) { if (visit is IVisit Visit) { var target = CommandTarget; var routedCmd = VisitCommand as RoutedCommand; if (routedCmd != null && routedCmd.CanExecute(Visit, target)) { routedCmd.Execute(Visit, target); } else if (VisitCommand != null && VisitCommand.CanExecute(Visit)) { // This is NOT a routed command. The command "VisitCommand" itself is defined // below as a command source. The target is defined in DoctorView.xaml as "SelectedName" in AppointmentEditor. VisitCommand.Execute(Visit); } } }