public void AddView(ScLayer viewLayer) { viewContentLayer.Clear(); viewLayer.Width = viewContentLayer.Width; viewLayer.Height = viewContentLayer.Height; viewContentLayer.Add(viewLayer); }
private void ScVxSlideTools_SizeChanged(object sender, SizeF oldSize) { wrapper.Height = Height; float itemTotalWidth = itemWidth * itemList.Count(); if (itemTotalWidth < Width) { wrapper.Width = Width; } else { wrapper.Width = itemTotalWidth; } wrapper.Location = new PointF(0, 0); RectangleF tableRect = new RectangleF(0, 0, wrapper.Width, wrapper.Height); Table toolstable = new Table(tableRect, 1, itemList.Count()); int i = 0; RectangleF itemRect; wrapper.Clear(); foreach (ScLayer item in itemList) { itemRect = toolstable.GetCellContentRect(0, i++); item.Location = new PointF((int)itemRect.X, (int)itemRect.Y); item.Width = (int)itemRect.Width; item.Height = (int)itemRect.Height; wrapper.Add(item); } }
public void AddDate(ScLayer dLayer) { dateLayer.Clear(); dLayer.Width = dateLayer.Width; dLayer.Height = dateLayer.Height; dLayer.Location = new PointF(0, 0); dateLayer.Add(dLayer); }
public void AddContent(ScLayer cLayer) { contentLayer.Clear(); cLayer.Width = contentLayer.Width - 40; cLayer.Height = contentLayer.Height - 10; cLayer.Location = new PointF(20, 0); contentLayer.Add(cLayer); }
public void AddTools(ScLayer toolsLayer) { toolsContentLayer.Clear(); toolsLayer.Width = toolsContentLayer.Width; toolsLayer.Height = toolsContentLayer.Height; toolsContentLayer.Add(toolsLayer); }
private void ScTabHead_SelectedItemEvent(ScTabHeaderItem selectedItem) { if (tabPageDict.ContainsKey(selectedItem)) { ScLayer tabBodyViewBox = tabPageDict[selectedItem]; tabBodyBox.Clear(); tabBodyBox.Add(tabBodyViewBox); if (SelectedItemEvent != null) { SelectedItemEvent(selectedItem); } tabBodyViewBox.Refresh(); } }
public void ReAddAllItems() { panelView.Clear(); LinkedListNode<ScTabHeaderItem> node = tabHeadItemListDepth.First; for (; node != null; node = node.Next) { panelView.Add(node.Value); } if (panelView.Width > Width) { preNextBtn.Visible = true; } panelView.Refresh(); }