internal override void load() { if (root.grdContent.Children.Contains(curcontrol)) { root.grdContent.Children.Remove(curcontrol); } curcontrol = new FishBone.FishBoneControl() { Margin = new System.Windows.Thickness(10, 60, 10, 10) }; curcontrol.dataSource = DataLayer.DataProvider.getDataTableFromSQL("select cast(ID as nvarchar(100)) id, sort1,sort2,ord,indexname, definition,IMPORTANT,format,VALUE,UNIT,VALUENOTE,REFER1,REFER2,REFERTYPE,refernote from d_index where SORT0='863' and isPeriod=0 order by ord,IMPORTANT"); root.grdContent.Children.Add(curcontrol); }
internal override void unload() { if (panel != null) { (panel as BaseIPanel).unload(); } root.grdMap.Opacity = 1; if (root.grdContent.Children.Contains(curcontrol)) { root.grdContent.Children.Remove(curcontrol); } curcontrol = null; }
void initfish() { if (isFishInited) { return; } isFishInited = true; fish = new FishBone.FishBoneControl(); fish.Margin = new Thickness(0, 50, 0, 0); anifish.Duration = anidistnet.Duration = TimeSpan.FromSeconds(0.5); fish.Opacity = 0; grdAdd.Children.Add(fish); hidefish(); fish.IsHitTestVisible = false; }