Exemple #1
0
 private void Init(PageControl control, FrameProperty property)
 {
     property.InitProperty();
     property.Id = control.Id;
     foreach (var childProperty in property.Properties)
     {
         var tempProperty = control.FindProperty(childProperty.Name);
         if (tempProperty != null)
         {
             childProperty.Value = tempProperty.Value;
         }
     }
     foreach (var childEvent in property.Events)
     {
         var tempEvent = control.FindEvent(childEvent.Name);
         if (tempEvent != null)
         {
             childEvent.Value = tempEvent.Value;
         }
     }
 }
Exemple #2
0
 private void CreateDefaultFrameProperty(PageScheme page)
 {
     var frame = new FrameProperty();
     frame.InitProperty();
     frame.Interval = page.Meta.Interval;
     frame.LayoutStyle = page.Meta.LayoutStyle;
     frame.ZIndex = "0";
     frame.Size = "800,600";
     frame.Location = "0,0";
     frame.CopyToPage(page);
 }