Ejemplo n.º 1
0
 public LayoutViewModel(LayoutInfo layout, UserSelectionContext context)
 {
     IsReadOnly = layout.Layout.Readonly;
     if (!IsReadOnly)
     {
         Template = new TemplateInfoViewModel(layout.Template, context)
         {
             Title = string.Format(StringRes.TemplateDetailsLayoutOptional, layout.Template.Name),
         };
     }
     else
     {
         Template = new TemplateInfoViewModel(layout.Template, context);
     }
 }
 public LayoutViewModel(LayoutInfo layout, string platform, string projectType, string frameworkName)
 {
     IsReadOnly = layout.Layout.Readonly;
     if (!IsReadOnly)
     {
         Template = new TemplateInfoViewModel(layout.Template, platform, projectType, frameworkName)
         {
             Title = string.Format(StringRes.TemplateDetailsLayoutOptional, layout.Template.Name),
         };
     }
     else
     {
         Template = new TemplateInfoViewModel(layout.Template, platform, projectType, frameworkName);
     }
 }