public void drawForm(String form)
{
formBar.Location = new System.Drawing.Point(asistimeAppBar.Location.X + 30, asistimeAppBar.Location.Y + asistimeAppBar.Height + 30);
iconBar.Location = new System.Drawing.Point(asistimeAppBar.Location.X + 30, asistimeAppBar.Location.Y + asistimeAppBar.Height + 30);
//formBar.Show();
formBar.BringToFront();
iconBar.BringToFront();
asistimeAppBar.Hide();
//stepsBar.Show();
switch (form)
{
case "circulo":
if (!(textPopup == null))
{
textPopup.Hide();
}
iconBar.Hide();
formBar.ShowControlsCircle();
circle();
break;
case "rectangulo":
if (!(textPopup == null))
{
textPopup.Hide();
}
iconBar.Hide();
formBar.ShowControlsRect();
rectangle();
break;
case "div":
if (!(textPopup == null))
{
textPopup.Hide();
}
iconBar.Hide();
formBar.Hide();
div();
break;
case "borrador":
if (!(textPopup == null))
{
textPopup.Hide();
}
iconBar.Hide();
formBar.Hide();
erase();
break;
case "texto":
iconBar.Hide();
formBar.Hide();
textPopup = new TextElement()
{
Parent = this
};
this.Controls.Add(textPopup);
textPopup.Location = new System.Drawing.Point(this.Width / 2 - textPopup.Width / 2, this.Height / 2 - textPopup.Height / 2);
textPopup.BringToFront();
textPopup.Show();
break;
case "icono":
if (!(textPopup == null))
{
textPopup.Hide();
}
formBar.Hide();
iconBar.Show();
break;
}
}