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