public DrawElement() { m_eTextAlign = TextAlign.Left; m_bDrawBorder = true; m_Factory = null; m_Property = null; }
// Add item to the mList void add(FactoryShape item) { if (item != null) { mList.Add(item); } }
public FactoryShape GetFactory(String name) { int index = -1; FactoryShape factory = null; for (int i = 0; i < mList.Count; i++) { factory = (FactoryShape)mList[i]; if (name == factory.Name) { index = i; break; } } return(GetFactory(index)); }
public void SetSelectedFactory(FactoryShape factory) { m_SelectedTool = factory; }
public FactoryShape SelectTool(int toolIndex) { m_SelectedTool = GetFactory(toolIndex); return(m_SelectedTool); }