Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StreamReader streamReader = new StreamReader("Settings.txt");
- string id = streamReader.ReadLine();
- if (File.Exists("Settings.txt"))
- {
- if (id.Contains("TopMost:True"))
- {
- this.TopMost = true;
- ScriptHub SC = new ScriptHub();
- SC.TopMost = true;
- Eternity et = new Eternity();
- et.TopMost = true;
- }
- else if (id.Contains("TopMost:False"))
- {
- this.TopMost = false;
- ScriptHub SC = new ScriptHub();
- SC.TopMost = false;
- Eternity et = new Eternity();
- et.TopMost = false;
- }
- if (id.Contains("AutoAttach:True"))
- {
- this.checkBox2.Checked = true;
- this.RbxCheck.Start();
- }
- else if (id.Contains("AutoAttach:False"))
- {
- this.checkBox2.Checked = false;
- RbxCheck.Stop();
- RbxCheck2.Stop();
- RbxClosedCheck.Stop();
- RbxClosedCheck2.Stop();
- }
- string id2 = File.ReadAllText("Settings.txt");
- if(id2.Contains(@"TopMost:True")&id2.Contains("AutoAttach:True"))
- {
- this.checkBox1.Checked = true;
- this.checkBox2.Checked = true;
- RbxCheck.Start();
- this.TopMost = true;
- ScriptHub SC = new ScriptHub();
- SC.TopMost = true;
- Eternity et = new Eternity();
- et.TopMost = true;
- }
- else if (id2.Contains(@"TopMost:False") & id2.Contains("AutoAttach:False"))
- {
- this.checkBox1.Checked = false;
- this.checkBox2.Checked = false;
- RbxCheck.Start();
- this.TopMost = false;
- ScriptHub SC = new ScriptHub();
- SC.TopMost = false;
- Eternity et = new Eternity();
- et.TopMost = false;
- }
- }
- else
- {
- StreamWriter sw = new StreamWriter(@"Settings.txt");
- sw.WriteLine(@"TopMost:False
- AutoAttach:False");
- sw.Close();
- }
- if (File.Exists("DoNotDelete.txt"))
- {
- StreamReader sr = new StreamReader("DoNotDelete.txt");
- string idk = streamReader.ReadLine();
- if (idk.Contains("True"))
- {
- this.checkBox2.Checked = false;
- RbxCheck.Stop();
- RbxCheck2.Stop();
- RbxClosedCheck.Stop();
- RbxClosedCheck2.Stop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement