예제 #1
0
        public async Task TestReadProperty(string property)
        {
            Assert.True(BControl.IsProperty(property));
            var status = await _bcontrol.ReadPropertyAsync(property);

            Assert.True(status.IsGood);
        }
예제 #2
0
파일: Controller.cs 프로젝트: priceLiu/clay
 private void LoadChilds(IList<Clay.Logic.Modules.Control> controls, BControl bc)
 {
     foreach (Clay.Logic.Modules.Control item in controls)
     {
         BControl child = null;
         switch (item.Type)
         {
             case Enums.ControlType.Div:
                 child = new Div { ID = item.ID, Float = item.Float, Clear = item.Clear, Width = item.Width, IsViewItem = item.IsViewItem, IsPanel = item.IsPanel };
                 break;
             case Enums.ControlType.Module:
                 child = new ModuleControl { ID = item.ID, ModuleName = item.ModuleName };
                 break;
         }
         bc.Controls.Add(child);
         LoadChilds(item.Controls, child);
     }
 }
예제 #3
0
 public void TestProperty(string property)
 {
     Assert.True(BControl.IsProperty(property));
     Assert.NotNull(_bcontrol.GetPropertyValue(property));
 }