protected void MemberActionGo_OnClick(Object sender, EventArgs e)
        {
            Int64 workflowId = 0;

            if (Int64.TryParse(MemberActionSelection.SelectedValue, out workflowId))
            {
                Client.Core.Work.Workflow workflow = MercuryApplication.WorkflowGet(workflowId, true);

                if (workflow != null)
                {
                    Response.Redirect("/Application/Workflow/Workflow.aspx?MemberId=" + Member.Id.ToString() + "&WorkflowId=" + workflow.Id.ToString(), true);
                }
            }

            return;
        }
        private void InitializeMyWorkQueuesForSelection(Int64 selectedWorkQueueId)
        {
            if (selectedWorkQueueId == 0)
            {
                return;
            }


            // UPDATE COUNT ON WORK QUEUE SELECTION

            InitializeAvailableCount();


            // UPDATE GET WORKFLOW

            Client.Core.Work.Workflow getWorkWorkFlow = MercuryApplication.WorkflowGetByWorkQueueId(selectedWorkQueueId, true);

            WorkQueueGetWorkButton.Text = (getWorkWorkFlow != null) ? getWorkWorkFlow.Name : "(Manual)";


            // UPDATE MONITOR LINK

            WorkQueueMonitorLink.Style.Clear();

            WorkQueueMonitorLink.Style.Add("white-space", "nowrap");

            WorkQueueMonitorLink.Style.Add("display", "none");

            if (MercuryApplication.Session.WorkQueuePermissions.ContainsKey(selectedWorkQueueId))
            {
                //if ((MercuryApplication.Session.WorkQueuePermissions[selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.Work)

                //    || (MercuryApplication.Session.WorkQueuePermissions[selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.SelfAssign)

                //    || (MercuryApplication.Session.WorkQueuePermissions[selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.Monitor)) {

                if (MercuryApplication.Session.WorkQueuePermissions[selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.Manage)
                {
                    WorkQueueMonitorLink.Style.Remove("display");

                    WorkQueueMonitorLink.Style.Add("display", "block");

                    WorkQueueMonitorLink.HRef = @"/Application/Work/WorkQueueMonitor.aspx?WorkQueueId=" + selectedWorkQueueId.ToString();
                }
            }


            // UPDATE MANAGE LINK

            WorkQueueManageLink.Style.Clear();

            WorkQueueManageLink.Style.Add("white-space", "nowrap");

            WorkQueueManageLink.Style.Add("display", "none");

            if (MercuryApplication.Session.WorkQueuePermissions.ContainsKey(selectedWorkQueueId))
            {
                //if ((MercuryApplication.Session.WorkQueuePermissions[selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.Work)

                //    || (MercuryApplication.Session.WorkQueuePermissions[selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.SelfAssign)

                //    || (MercuryApplication.Session.WorkQueuePermissions[selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.Manage)) {

                if (MercuryApplication.Session.WorkQueuePermissions [selectedWorkQueueId] == Mercury.Server.Application.WorkQueueTeamPermission.Manage)
                {
                    WorkQueueManageLink.Style.Remove("display");

                    WorkQueueManageLink.Style.Add("display", "block");

                    WorkQueueManageLink.HRef = @"/Application/Work/WorkQueueManagement.aspx?WorkQueueId=" + selectedWorkQueueId.ToString();
                }
            }


            return;
        }