Beispiel #1
0
 private void rootToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!Utilitary.VerifyPath())
     {
         OptionsSet o = new OptionsSet();
         o.ShowDialog();
         return;
     }
     System.Diagnostics.Process.Start(SetConfigRegistry.ReadRegistry(TypeRege.PathDownload.ToString()));
 }
Beispiel #2
0
        private void Psvita_CheckedChanged(object sender, EventArgs e)
        {
            if (Psvita.Checked)
            {
                if (!Utilitary.VerifyPath())
                {
                    OptionsSet o = new OptionsSet();
                    o.ShowDialog();
                    Psvita.Checked = false;
                    return;
                }
                if (!Utilitary.Verifythersvita(TypeRege.PathPsvita.ToString()))
                {
                    OptionsSet o = new OptionsSet();
                    o.ShowDialog();
                    Psvita.Checked = false;
                    return;
                }

                Utilitary.CreateFolder(SetConfigRegistry.ReadRegistry(TypeRege.PathDownload.ToString()) + "\\HomeBrewDonwload");
                Utilitary.CreateFolder(SetConfigRegistry.ReadRegistry(TypeRege.PathDownload.ToString()) + "\\HomeBrewDonwload\\" + "Psvita");

                var HomeBrewList  = new List <string>();
                var HomeBrewSelec = Utilitary.GetHomeBrewSelec(HomeBrewList, TypeRege.PathPsvita.ToString());

                if (string.IsNullOrEmpty(HomeBrewSelec.TitleId))
                {
                    Psvita.Checked = false;
                    return;
                }

                if (HomeBrewSelec.TitleId == "--Exit--")
                {
                    Psvita.Checked = false;
                    return;
                }

                Utilitary.CreateFolder(SetConfigRegistry.ReadRegistry(TypeRege.PathDownload.ToString()) + "\\HomeBrewDonwload\\" + "Psvita\\" + HomeBrewSelec.TitleId);

                //Find extension
                string Ext = FindExten(HomeBrewSelec.LastDirectLink);

                string patharc = SetConfigRegistry.ReadRegistry(TypeRege.PathDownload.ToString()) + "\\HomeBrewDonwload\\" + "Psvita\\" + HomeBrewSelec.TitleId + "\\" + HomeBrewSelec.TitleName + Ext;
                DownloadFile(HomeBrewSelec.LastDirectLink, patharc);
                progressBar1.Visible = true;
                label6.Visible       = true;
                Psvita.Enabled       = false;
                PS3.Enabled          = false;
                PS4.Enabled          = false;
                Psvita.Checked       = false;

                string NameArtTxt = SetConfigRegistry.ReadRegistry(TypeRege.PathDownload.ToString()) + "\\HomeBrewDonwload\\" + @"\historic.txt";
                Utilitary.CreateFileWriteHistoric(NameArtTxt, HomeBrewSelec.TitleId);
            }
        }
Beispiel #3
0
        private void settingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OptionsSet o = new OptionsSet();

            o.ShowDialog();
        }