예제 #1
0
 public DrawElement()
 {
     m_eTextAlign  = TextAlign.Left;
     m_bDrawBorder = true;
     m_Factory     = null;
     m_Property    = null;
 }
예제 #2
0
 // Add item to the mList
 void add(FactoryShape item)
 {
     if (item != null)
     {
         mList.Add(item);
     }
 }
예제 #3
0
        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));
        }
예제 #4
0
 public void SetSelectedFactory(FactoryShape factory)
 {
     m_SelectedTool = factory;
 }
예제 #5
0
 public FactoryShape SelectTool(int toolIndex)
 {
     m_SelectedTool = GetFactory(toolIndex);
     return(m_SelectedTool);
 }