コード例 #1
0
 public dtoSettingsStep(GlossaryStep type)
     : base(type)
 {
     //DashboardStatus = (settings == null) ? AvailableStatus.Draft : settings.Status;
     //if (settings != null)
     //{
     //    Persons = 2;        // settings.GetAssignments(DashboardAssignmentType.User).Count();
     //    Roles = 2;          // settings.GetAssignments(DashboardAssignmentType.RoleType).Count();
     //    ProfileTypes = 2;   // settings.GetAssignments(DashboardAssignmentType.ProfileType).Count();
     //    if (!settings.ForAll && Persons == 0 && Roles == 0 && ProfileTypes == 0)
     //    {
     //        Errors.Add(EditingErrors.NoAssignedItems);
     //        Status =Comol.Core.Wizard.WizardItemStatus.warning;
     //    }
     //    else
     Status = WizardItemStatus.valid;
     //}
     //else
     //    Status = Comol.Core.Wizard.WizardItemStatus.none;
 }
コード例 #2
0
 public DTO_GlossaryStep(GlossaryStep type)
     : this()
 {
     Type = type;
 }