Exemple #1
0
 void drawFormBox(FormBox fb)
 {
     foreach (ControlBox cb in fb.ControlBoxes)
     {
         if (cb is TextBox)
         {
             drawTextBox((TextBox)cb, fb.Location);
         }
         else if (cb is TextureBox)
         {
             drawTextureBox((TextureBox)cb, fb.Location);
         }
         else if (cb is ButtonBox)
         {
             drawButtonBox((ButtonBox)cb, fb.Location);
         }
     }
 }
Exemple #2
0
 public void Add(FormBox texture)
 {
     foreach (FormBox mxt in items)
     {
         if (mxt.Name == texture.Name)
         {
             return;
         }
     }
     items.Add(texture);
 }