Beispiel #1
0
 public void Clicked(System.Object sender, System.EventArgs e)
 {
     if (Loaded == false)
     {
         About.BringToFront();
     }
 }
Beispiel #2
0
    public void CleaniREB()
    {
        MDIMain.dfuinstructions.Visible    = false;
        MDIMain.dfuinstructionstxt.Visible = false;
        MDIMain.blue.Visible    = false;
        MDIMain.Button1.Visible = false;
        BackgroundWorker1.Dispose();
        BackgroundWorker2.Dispose();
        // Display a child form.
        Form frm = new Form();

        frm.MdiParent = MDIMain;
        frm.Width     = this.Width / 2;
        frm.Height    = this.Height / 2;
        frm.Show();
        frm.Hide();

        Welcome.MdiParent = MDIMain;
        Welcome.Show();
        Welcome.Button1.Enabled = false;
        About.MdiParent         = MDIMain;
        About.Show();
        About.BringToFront();

        MDIMain.done.Enabled      = false;
        MDIMain.done.Checked      = false;
        MDIMain.donetxt.ForeColor = Color.DimGray;
        this.Dispose();
    }
Beispiel #3
0
    private void Button1_Click(System.Object sender, System.EventArgs e)
    {
        dynamic Answer = null;

        Answer = Interaction.MsgBox("Are you sure you want to cancel?", MsgBoxStyle.YesNo, "iFaith");
        if (Answer == Constants.vbYes)
        {
            Interaction.Shell("cmd /c taskkill /f /t /im xpwntool.exe", AppWinStyle.Hide);
            Interaction.Shell("cmd /c taskkill /f /t /im vfdecrypt.exe", AppWinStyle.Hide);
            Interaction.Shell("cmd /c taskkill /f /t /im hfsplus.exe", AppWinStyle.Hide);
            // Display a child form.
            Form frm = new Form();
            frm.MdiParent = MDIMain;
            frm.Width     = this.Width / 2;
            frm.Height    = this.Height / 2;
            frm.Show();
            frm.Hide();

            Welcome.MdiParent = MDIMain;
            Welcome.Show();
            Welcome.Button1.Enabled = false;
            About.MdiParent         = MDIMain;
            About.Show();
            About.BringToFront();
            this.Close();
            this.Dispose();
        }
        else
        {
            return;
        }
    }
Beispiel #4
0
    private void Button4_Click(System.Object sender, System.EventArgs e)
    {
        // Display a child form.
        Button4.Enabled = false;
        this.Enabled    = false;
        CancelDownload  = true;
        if (Worker.IsBusy == true)
        {
            Worker.CancelAsync();
        }
        Form frm = new Form();

        frm.MdiParent = MDIMain;
        frm.Width     = this.Width / 2;
        frm.Height    = this.Height / 2;
        frm.Show();
        frm.Hide();

        Welcome.MdiParent = MDIMain;
        Welcome.Show();
        Welcome.Button1.Enabled = false;
        About.MdiParent         = MDIMain;
        About.Show();
        About.BringToFront();

        MDIMain.done.Enabled      = false;
        MDIMain.done.Checked      = false;
        MDIMain.donetxt.ForeColor = Color.DimGray;
        Delay(1);
        this.Dispose();
    }
Beispiel #5
0
 private void Welcome_MouseHover(System.Object sender, System.EventArgs e)
 {
     if (Loaded == false)
     {
         About.BringToFront();
     }
 }
Beispiel #6
0
 private void aboutRepetierHostToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (about == null)
     {
         about = new About();
     }
     about.Show(this);
     about.BringToFront();
 }
Beispiel #7
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (wndAbout != null)
     {
         wndAbout.Close();
     }
     wndAbout = new About();
     wndAbout.MdiParent = this;
     wndAbout.BringToFront();
     wndAbout.Show();
 }
Beispiel #8
0
    private void MDIMain_Load(System.Object sender, System.EventArgs e)
    {
        SetMdiClientBorder(false);
        foreach (Control ctl in this.Controls)
        {
            if (ctl is MdiClient)
            {
                ctl.BackColor = this.BackColor;
            }
        }
        // Display a child form.
        Form frm = new Form();

        frm.MdiParent = this;
        frm.Width     = this.Width / 2;
        frm.Height    = this.Height / 2;
        frm.Show();
        frm.Hide();

        this.Text = "iFaith v" + VersionNumber + " -- By: iH8sn0w";

        Welcome.MdiParent = this;
        Welcome.Show();
        Welcome.Button1.Enabled = false;
        About.MdiParent         = this;
        About.Show();
        About.BringToFront();
        temppath = System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\Temp\\iFaith";
        Folder_Delete(temppath);
        Create_Directory(temppath);
        // SendKeys
        Microsoft.Win32.RegistryKey NewKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion", true);
        string GetVal = Convert.ToString(NewKey.GetValue("ProductName"));

        if (GetVal.Contains("Windows XP"))
        {
            NewKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}", true);
            try {
                GetVal = Convert.ToString(NewKey.GetValue("DisplayName"));
            } catch (Exception ex) {
                //uh-oh...
            }
            if (GetVal.Contains("C++"))
            {
                //MsgBox("INSTALLED!", MsgBoxStyle.Information)
            }
            else
            {
                InstallVCPP.RunWorkerAsync();
                //MsgBox("NOT INSTALLED!", MsgBoxStyle.Information)
            }
        }
    }
Beispiel #9
0
    private void goback_Click(System.Object sender, System.EventArgs e)
    {
        // Display a child form.
        Form frm = new Form();

        frm.MdiParent = MDIMain;
        frm.Width     = this.Width / 2;
        frm.Height    = this.Height / 2;
        frm.Show();
        frm.Hide();

        this.Controls.Clear();
        InitializeComponent();
        Show();

        this.Button1.Enabled = false;
        About.MdiParent      = MDIMain;
        About.Show();
        About.BringToFront();
    }
Beispiel #10
0
    private void goback_Click(System.Object sender, System.EventArgs e)
    {
        iLeft    = true;
        QuitMOFO = true;
        // Display a child form.
        Form frm = new Form();

        frm.MdiParent = MDIMain;
        frm.Width     = this.Width / 2;
        frm.Height    = this.Height / 2;
        frm.Show();
        frm.Hide();

        Welcome.MdiParent = MDIMain;
        Welcome.Show();
        Welcome.Button1.Enabled = false;
        About.MdiParent         = MDIMain;
        About.Show();
        About.BringToFront();
        this.Close();
        this.Dispose();
    }
Beispiel #11
0
    public void iAcqua()
    {
        try {
            Label2.Text    = "Communicating with Server...";
            spinny.Visible = true;
            iphone.Visible = false;
            Label3.Visible = false;
            Center_Label(spinny);
            Center_Label(Label2);
            Center_Label(availableshsh);
            Center_Label(dlallBTN);
            Center_Label(dlblobBTN);
            if (DoIgiveAshit == true)
            {
                return;
            }
            Delay(1);
            File_Delete(temppath + "\\available.xml");
            if (DoIgiveAshit == true)
            {
                return;
            }
            try {
                string  Check       = "http://iacqua.ih8sn0w.com/req.php?ecid=" + ECID;
                Uri     CheckURI    = new Uri(Check);
                dynamic clientCheck = new System.Net.WebClient();
                clientCheck.Headers.Add("user-agent", "iacqua/1.0-452");
                clientCheck.DownloadFileAsync(CheckURI, temppath + "\\available.xml");
                if (DoIgiveAshit == true)
                {
                    return;
                }
                while (!(clientCheck.IsBusy == false))
                {
                    Delay(0.5);
                }
            } catch (Exception ex) {
                Interaction.MsgBox("Error 3 : We have failed trying to connect to iFaith's SHSH Cache server!", MsgBoxStyle.Critical);
                // Display a child form.
                Form frm = new Form();
                frm.MdiParent = MDIMain;
                frm.Width     = this.Width / 2;
                frm.Height    = this.Height / 2;
                frm.Show();
                frm.Hide();

                Welcome.MdiParent = MDIMain;
                Welcome.Show();
                Welcome.Button1.Enabled = false;
                About.MdiParent         = MDIMain;
                About.Show();
                About.BringToFront();
                this.Dispose();
                return;
            }
            try {
                while (!(File_Exists(temppath + "\\available.xml") == true))
                {
                    if (DoIgiveAshit == true)
                    {
                        return;
                    }
                    Delay(0.1);
                }
                Delay(2);
                thatbox.LoadFile(temppath + "\\available.xml", RichTextBoxStreamType.PlainText);
                spinny.Visible = false;
                if (DoIgiveAshit == true)
                {
                    return;
                }
                availableshsh.Items.AddRange(thatbox.Lines);
                if (availableshsh.Items.Count >= 1)
                {
                    availableshsh.Items.Remove(availableshsh.Items.Item(availableshsh.Items.Count - 1));
                }
                if (DoIgiveAshit == true)
                {
                    return;
                }
                Label2.Text = "Available Blobs:";
                Center_Label(Label2);
                Button1.Visible = true;
                //Show drop down menu.
                if (availableshsh.Items.Count == 0)
                {
                    availableshsh.Items.Add("None");
                    dlallBTN.Enabled  = false;
                    dlblobBTN.Enabled = false;
                }
                else
                {
                    dlallBTN.Enabled  = true;
                    dlblobBTN.Enabled = true;
                }
                availableshsh.Visible       = true;
                availableshsh.SelectedIndex = 0;
                dlallBTN.Visible            = true;
                dlblobBTN.Visible           = true;
            } catch (Exception ex) {
            }
        } catch (Exception ex) {
        }
    }
Beispiel #12
0
 private void pictureBox3_Click(object sender, EventArgs e)
 {
     About.BringToFront();
     AboutLine.Show();
     ContactLine.Hide();
 }
Beispiel #13
0
 private void menuItem3_Click(object sender, EventArgs e)
 {
     About.Visible = true;
     About.BringToFront();
     About.Dock = DockStyle.Fill;
 }