protected void Page_Load(object sender, EventArgs e)
        {
            if (filter.UserGuid != Guid.Empty)
            {
                user      = new Registry.User(((PageBase)Page).RegistryContext);
                user.Guid = filter.UserGuid;
                user.Load();

                linkUser.EntityReference.Value = user;
                linkUser.Visible = true;
            }
            else
            {
                linkUser.Visible = false;
            }

            if (filter.JobGuid != Guid.Empty)
            {
                job      = new JobInstance(((PageBase)Page).RegistryContext);
                job.Guid = filter.JobGuid;
                job.Load();

                linkJob.EntityReference.Value = job;
                linkJob.Visible = true;
            }
            else
            {
                linkJob.Visible = false;
            }

            if (filter.EntityGuid != Guid.Empty)
            {
                entity      = new Entity(((PageBase)Page).RegistryContext);
                entity.Guid = filter.EntityGuid;
                entity.Load();

                linkEntity.EntityReference.Value = entity;
                linkEntity.Visible = true;
            }
            else
            {
                linkEntity.Visible = false;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (filter.UserGuid != Guid.Empty)
            {
                user = new Registry.User(((PageBase)Page).RegistryContext);
                user.Guid = filter.UserGuid;
                user.Load();

                linkUser.EntityReference.Value = user;
                linkUser.Visible = true;
            }
            else
            {
                linkUser.Visible = false;
            }

            if (filter.JobGuid != Guid.Empty)
            {
                job = new JobInstance(((PageBase)Page).RegistryContext);
                job.Guid = filter.JobGuid;
                job.Load();

                linkJob.EntityReference.Value = job;
                linkJob.Visible = true;
            }
            else
            {
                linkJob.Visible = false;
            }

            if (filter.EntityGuid != Guid.Empty)
            {
                entity = new Entity(((PageBase)Page).RegistryContext);
                entity.Guid = filter.EntityGuid;
                entity.Load();

                linkEntity.EntityReference.Value = entity;
                linkEntity.Visible = true;
            }
            else
            {
                linkEntity.Visible = false;
            }
        }
 private void LoadItem()
 {
     user = new Registry.User(RegistryContext);
     user.Guid = new Guid(Request.QueryString["guid"]);
     user.Load();
 }
Exemple #4
0
 private void LoadItem()
 {
     user      = new Registry.User(RegistryContext);
     user.Guid = new Guid(Request.QueryString["guid"]);
     user.Load();
 }