private void client_ApproveLeaveCompleted(object sender, ApproveLeaveCompletedEventArgs e) { Logger.Instance().Log(MessageType.Information, "Approve Leave Completed"); if (ErrorHandler.Handle(e.Error)) { return; } Message.Information("Done! A notification email will be sent to your team member. You are in the CC list."); this.UpdateListEvent(sender, e); // refresh list data GetHoursInfo(); actButton.IsEnabled = true; if (rejectButton != null) { rejectButton.IsEnabled = true; } }
private void client_ApproveLeaveCompleted(object sender, ApproveLeaveCompletedEventArgs e) { count--; if (count == 0) { Logger.Instance().Log(MessageType.Information, "Approve Leave Completed"); if (ErrorHandler.Handle(e.Error)) { return; } if (UpdateLeftUI != null) { UpdateLeftUI(sender, e); } RefreshData(CarsConfig.Instance().ShowAllRecords); sc.Busy = false; Message.Information("Done! A notification email will be sent to your team member. You are in the CC list."); } }