Esempio n. 1
0
        void ReleaseDesignerOutlets()
        {
            if (VerifyButton != null)
            {
                VerifyButton.Dispose();
                VerifyButton = null;
            }

            if (ChooseButton2 != null)
            {
                ChooseButton2.Dispose();
                ChooseButton2 = null;
            }

            if (PersonView != null)
            {
                PersonView.Dispose();
                PersonView = null;
            }

            if (PersonNameLabel != null)
            {
                PersonNameLabel.Dispose();
                PersonNameLabel = null;
            }

            if (PersonImageView != null)
            {
                PersonImageView.Dispose();
                PersonImageView = null;
            }
        }
        private void CustomizeColumns(GridViewRow row)
        {
            WorkQueueSummary summary = row.DataItem as WorkQueueSummary;

            if (summary != null)
            {
                PersonNameLabel nameLabel = row.FindControl("PatientName") as PersonNameLabel;
                if (nameLabel != null)
                {
                    nameLabel.PersonName = summary.PatientsName;
                }
            }
        }