Пример #1
0
 public void GoGoGadgetiFaith()
 {
     QuitDFU              = true;
     DFUConnected         = false;
     ResetDFUInstructions = true;
     iDetector();
     //Shutdown iTunes...
     //Shell("cmd /c taskkill /f /t /im iTunes.exe", AppWinStyle.Hide)
     //Shell("cmd /c taskkill /f /t /im iTunesHelper.exe", AppWinStyle.Hide)
     //Go...
     MDIMain.TopMost = true;
     MDIMain.Activate();
     if (iREB_mode == true)
     {
         MDIMain.TopMost = true;
         MDIMain.Activate();
         PictureBox2.Visible  = true;
         ProgressBar1.Visible = true;
         PictureBox2.BringToFront();
         ProgressBar1.BringToFront();
         BackgroundWorker2.RunWorkerAsync();
         SaveToDisk("s-irecovery.exe", temppath + "\\s-irecovery.exe");
         iRecovery_exploit();
         MDIMain.TopMost = false;
         Interaction.MsgBox("Your device is now in a PWNED DFU state (black screen)." + Strings.Chr(13) + Strings.Chr(13) + "You may now launch iTunes and do SHIFT + Restore" + Strings.Chr(13) + "to the custom *signed* IPSW located on your desktop!", MsgBoxStyle.Information);
         CleaniREB();
     }
     else
     {
         Run.MdiParent = MDIMain;
         Run.Show();
         this.Dispose();
     }
 }
Пример #2
0
        /// <summary>
        /// Is Handled when a capture has been successfully taken
        /// </summary>
        /// <param name="Frame">The picturebox that has been generated</param>
        void CaptureInfo_FrameCaptureComplete(PictureBox Frame)
        {
            PictureBox2.BackgroundImage = Frame.Image;

            PictureBox1.Visible = false;
            PictureBox2.Visible = true;

            rect = new Rectangle(new Point(105, 50), new Size(105, 135));

            PictureBox2.Refresh();
            CaptureInfo.PreviewWindow = null;
        }
Пример #3
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     Label6.Hide();
     Panel1.Size = new Size(45, 727);
     pictureBox1.Hide();
     Button1.Hide();
     Button2.Hide();
     Button3.Hide();
     Button4.Hide();
     PictureBox2.Show();
     DataGridView1.Hide();
 }
Пример #4
0
        private void PictureBox2_Click(object sender, EventArgs e)
        {
            Panel1.Size = new Size(136, 727);

            Button1.Show();
            Button2.Show();
            Button3.Show();
            Button4.Show();
            pictureBox1.Show();
            Label6.Show();

            PictureBox2.Hide();
        }
Пример #5
0
 private void PictureBox2_Paint(object sender, PaintEventArgs e)
 {
     PictureBox2.Invalidate();
     e.Graphics.DrawRectangle(pen, rect);
 }
 private void ComboBox2_SelectedIndexChanged(object sender, EventArgs e)
 {
     PictureBox2.GetAndDrawFrontPokemonPic(ComboBox2.SelectedIndex);
 }
Пример #7
0
        private void frm_inicio_Load(object sender, EventArgs e)
        {
            // metodo pone un timer a funcionar para ir mostrado la hora en el sistema y se cambie
            timer1.Start();
            // antes de iniciar el programa implementa parametros para acomodar la interfaz dependiendo de la pantalla de computador
            PictureBox1.SetBounds(Screen.PrimaryScreen.Bounds.Width - 150, 15, PictureBox1.Width, PictureBox1.Height);
            PictureBox2.SetBounds(0, Screen.PrimaryScreen.Bounds.Height - 70, PictureBox2.Width, PictureBox2.Height);
            PictureBox3.SetBounds(Screen.PrimaryScreen.Bounds.Width - 60, 15, PictureBox3.Width, PictureBox3.Height);
            PictureBox4.SetBounds(10, 30, PictureBox4.Width, PictureBox4.Height);
            PictureBox5.SetBounds(this.Width - 200, this.Height - 100, PictureBox5.Width, PictureBox5.Height);
            Label1.SetBounds(100, 30, Label1.Width, Label1.Height);
            nombre.SetBounds(Screen.PrimaryScreen.Bounds.Width - 290, PictureBox1.Height - 40, nombre.Width, nombre.Height);
            Label3.SetBounds(Screen.PrimaryScreen.Bounds.Width - 290, PictureBox1.Height - 15, Label3.Width, Label3.Height);
            Label11.SetBounds(this.Width - 245, this.Height - 120, Label11.Width, Label11.Height);
            Label12.SetBounds(Screen.PrimaryScreen.Bounds.Width - 60, PictureBox3.Height + 15, Label12.Width, Label12.Height);
            Label4.SetBounds(Screen.PrimaryScreen.Bounds.Width - 220, PictureBox1.Height, Label4.Width, Label4.Height);
            pn_principal.SetBounds(PictureBox4.Width + 50, PictureBox4.Height + 40, Panel1.Width + pn_empleados.Width + Pn_pagos.Width + 400, Panel4.Height + Panel1.Height + 100);
            Panel1.SetBounds(PictureBox4.Width + 50, PictureBox4.Height + 40, Panel1.Width, Panel1.Height);
            pn_empleados.SetBounds(Panel1.Width + 350, PictureBox4.Height + 40, pn_empleados.Width, pn_empleados.Height);
            Pn_pagos.SetBounds(pn_empleados.Width + 800, PictureBox4.Height + 40, Pn_pagos.Width, Pn_pagos.Height);
            Panel4.SetBounds(PictureBox4.Width + 50, Panel1.Height + 200, Panel4.Width, Panel4.Height);
            Panel5.SetBounds(Panel4.Width + 350, Panel1.Height + 200, Panel5.Width, Panel5.Height);
            pn_configuracion.SetBounds(Panel5.Width + 800, Panel1.Height + 200, Panel5.Width, Panel5.Height);
            pn_principal.Hide();


            // obtiene los datos del usuario actual por medio de la variable ID

            DataSet ds = conexion.sqlconsulta("Select nombre,puesto,cedula,foto from  tbl_usuarios  where id_usuario='" + ID.ToString() + "'");

            nombre.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
            Label3.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();

            try
            {
                PictureBox1.BackgroundImage       = Image.FromFile(ds.Tables[0].Rows[0].ItemArray[3].ToString());
                PictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            }
            catch (Exception ex)
            {
                PictureBox1.BackgroundImage       = Image.FromFile(@"perfiles\profile.png");
                PictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            }

            var busqueda = new StreamReader("configuracion.cfg");

            String cadena;

            while ((cadena = busqueda.ReadLine()) != null)
            {
                string[] campos = cadena.Split(':');
                if (campos[0].Equals("Fondo"))
                {
                    this.BackgroundImage       = Image.FromFile("fondo/" + campos[1]);
                    this.BackgroundImageLayout = ImageLayout.Stretch;
                }
                cadena = busqueda.ReadLine();
            }


            busqueda.Close();
        }