예제 #1
0
파일: Cargando.cs 프로젝트: moisesiq/aupaga
        private static void ProcesoMostrar()
        {
            // Se crea el formulario

            /* Cargando.oForma = new Form()
             * {
             *  FormBorderStyle = FormBorderStyle.None,
             *  Size = new Size(64, 64),
             *  Opacity = 85,
             *  ShowInTaskbar = false,
             *  StartPosition = FormStartPosition.CenterScreen
             * };
             * // Se crea el "PictureBox"
             * Cargando.oImagen = new PictureBox()
             * {
             *  Dock = DockStyle.Fill,
             *  Image = Cargando.Animacion,
             *  SizeMode = PictureBoxSizeMode.Zoom
             * };
             * // Se agrega el "Picture" a la forma
             * Cargando.oForma.Controls.Add(oImagen);
             */

            Cargando.oForma = new CargandoForma();
            // if (oParam != null)
            // Cargando.oForma.Owner = (oParam as Form);

            // Se muestra el formulario
            //Cargando.oForma.Show();
            //Cargando.oForma.Size = new Size(64, 64);

            // Se usa un try porque al llamar el "Abort()" para terminar el proceso, se genera un excepción
            //try { Application.Run(Cargando.oForma); }
            //catch (Exception e) { MessageBox.Show(e.Message + "\n\n" + e.InnerException.Message); }
            Application.Run(Cargando.oForma);

            /*Cargando.oForma.Close();
             * Cargando.oForma.Dispose();*/
            Cargando.oForma.Dispose();
            Cargando.oForma = null;
        }
예제 #2
0
파일: Cargando.cs 프로젝트: moisesiq/aupaga
        private static void ProcesoMostrar()
        {
            // Se crea el formulario
            /* Cargando.oForma = new Form()
            {
                FormBorderStyle = FormBorderStyle.None,
                Size = new Size(64, 64),
                Opacity = 85,
                ShowInTaskbar = false,
                StartPosition = FormStartPosition.CenterScreen
            };
            // Se crea el "PictureBox"
            Cargando.oImagen = new PictureBox()
            {
                Dock = DockStyle.Fill,
                Image = Cargando.Animacion,
                SizeMode = PictureBoxSizeMode.Zoom
            };
            // Se agrega el "Picture" a la forma
            Cargando.oForma.Controls.Add(oImagen);
            */

            Cargando.oForma = new CargandoForma();
            // if (oParam != null)
                // Cargando.oForma.Owner = (oParam as Form);

            // Se muestra el formulario
            //Cargando.oForma.Show();
            //Cargando.oForma.Size = new Size(64, 64);

            // Se usa un try porque al llamar el "Abort()" para terminar el proceso, se genera un excepción
            //try { Application.Run(Cargando.oForma); }
            //catch (Exception e) { MessageBox.Show(e.Message + "\n\n" + e.InnerException.Message); }
            Application.Run(Cargando.oForma);

            /*Cargando.oForma.Close();
            Cargando.oForma.Dispose();*/
            Cargando.oForma.Dispose();
            Cargando.oForma = null;
        }