private void btnCancelWaitingOutbound_Click(object sender, System.Windows.RoutedEventArgs e) { var vm = this.DataContext as RegisterVM; facade.CancelWaitingOutbound(vm.SysNo.Value, (obj, args) => { vm.BasicInfo.OutBoundStatus = null; SetButtonStatus(); Window.Alert(ResRegisterMaintain.Info_OperateSuccessfully); }); }