Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.TopMost = true;
            //Grab Similtaneous downloads count
            int val = 8;

            if (Int32.TryParse(RegCalls.GetREG(@"SOFTWARE\DERM", "Downloads"), out val))
            {
                slideSIM.Value = Int32.Parse(RegCalls.GetREG(@"SOFTWARE\DERM", "Downloads"));
            }

            DEparser dp        = new DEparser();
            string   pfiletype = dp.GrabID(File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"exclude.txt")));

            string[] disft = pfiletype.Split('|');
            foreach (string s in disft)
            {
                fltypes.Text += s + "\n";
            }

            string[] zips = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory, "*.zip");
            if (zips != null)
            {
                foreach (string z in zips)
                {
                    rsbak.Enabled = true;
                    break;
                }
            }
            if (Directory.Exists(RegCalls.GetREG(@"SOFTWARE\DERM", "GamePath")))
            {
                gamepathTXT.Text = RegCalls.GetREG(@"SOFTWARE\DERM", "GamePath");
            }
            else
            {
                MessageBox.Show("GamePath is invalid! Please enter a correct path.", "AoE2DE Not Found!");
                gamepathTXT.Text = RegCalls.GetREG(@"SOFTWARE\DERM", "GamePath");
            }
        }