Пример #1
0
 private void changePATH_Click(object sender, EventArgs e)
 {
     RegCalls.AddREG(gamepathTXT.Text.TrimEnd('\\'), @"SOFTWARE\DERM", "GamePath");
     if (Directory.Exists(gamepathTXT.Text))
     {
         De_Roll.Form1 dr = new De_Roll.Form1();
         dr.GameDirInternal = gamepathTXT.Text.TrimEnd('\\');
         dr.Close();
         MessageBox.Show("Success!", "Game Path Updated!");
     }
     else
     {
         MessageBox.Show("GamePath is invalid! Please enter a correct path.", "Wrong Path!");
     }
 }
Пример #2
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");
            }
        }
Пример #3
0
 private async void slideSIM_ValueChanged(object sender, EventArgs e)
 {
     disVAL.Text = slideSIM.Value.ToString();
     RegCalls.AddREG(slideSIM.Value.ToString(), @"SOFTWARE\DERM", "Downloads");
     await Task.Delay(200);
 }