Пример #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (agregarAgente == null)
            {
                agregarAgente = new AgregarAgente();
                agregarAgente.Show();
                agregarAgente.FormClosed += instanceHasBeenClosed;
                PBarForm pb = new PBarForm();

                /*pb.Show();
                 * pb.iniciar();*/
            }
            else
            {
                agregarAgente.Focus();
            }
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (agregarListaPreciosEstilista == null)
            {
                agregarListaPreciosEstilista = new AgregarListaPreciosEstilista();
                agregarListaPreciosEstilista.Show();
                agregarListaPreciosEstilista.FormClosed += instanceHasBeenClosed;
                PBarForm pb = new PBarForm();

                /*pb.Show();
                 * pb.iniciar();*/
            }
            else
            {
                agregarListaPreciosEstilista.Focus();
            }
        }