Advertisement
ArxkRBLX

Untitled

Dec 14th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.88 KB | None | 0 0
  1. -- Arxk
  2. This is honestly pretty messy, it was an application for script saving, it would load a list of scripts they had saved and they could click it and copy the script, was originally created for the use of exploiters to easily access scripts lol. Not gonna comment on most of it because it's pretty self explanatory and most of it is white-space.
  3. --
  4.  
  5. using MaterialSkin;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.ComponentModel;
  9. using System.Data;
  10. using System.Net;
  11. using System.Drawing;
  12. using System.Linq;
  13. using System.Text;
  14. using System.Threading.Tasks;
  15. using System.Windows.Forms;
  16. using System.IO;
  17.  
  18. namespace Debux_Hub
  19. {
  20. public partial class Form2 : MaterialSkin.Controls.MaterialForm
  21. {
  22. private object folderBrowserDialog3save;
  23. private object logfiletextbox;
  24. private string line;
  25.  
  26. public Form2()
  27. {
  28. InitializeComponent();
  29. }
  30.  
  31. private void Form2_Load(object sender, EventArgs e)
  32. {
  33. listBox1.Items.Clear();
  34. DirectoryInfo dinfo = new DirectoryInfo(@"C");
  35. FileInfo[] Files = dinfo.GetFiles();
  36. foreach (FileInfo file in Files)
  37.  
  38. listBox1.Items.Add(file.Name);
  39.  
  40. var materialSkinManager = MaterialSkinManager.Instance;
  41. materialSkinManager.AddFormToManage(this);
  42. materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.Blue200, TextShade.WHITE);
  43.  
  44. }
  45.  
  46.  
  47. private void materialRaisedButton1_Click(object sender, EventArgs e)
  48. {
  49. }
  50.  
  51. private void materialRaisedButton2_Click(object sender, EventArgs e)
  52. {
  53. }
  54.  
  55. private void materialRaisedButton3_Click(object sender, EventArgs e)
  56. {
  57. }
  58.  
  59. private void materialRaisedButton4_Click(object sender, EventArgs e)
  60. {
  61. }
  62.  
  63. private void sdf_Click(object sender, EventArgs e)
  64. {
  65. }
  66.  
  67. private void asd_Click(object sender, EventArgs e)
  68. {
  69. }
  70.  
  71. private void asdl_Click(object sender, EventArgs e)
  72. {
  73. }
  74.  
  75. private void sadsdf_Click(object sender, EventArgs e)
  76. {
  77. }
  78.  
  79. private void asssa_Click(object sender, EventArgs e)
  80. {
  81. }
  82.  
  83. private void asafd_Click(object sender, EventArgs e)
  84. {
  85. }
  86.  
  87. private void dsf_Click(object sender, EventArgs e)
  88. {
  89. }
  90.  
  91. private void gf_Click(object sender, EventArgs e)
  92. {
  93. }
  94.  
  95. private void materialRaisedButton5_Click(object sender, EventArgs e)
  96. {
  97. var materialSkinManager = MaterialSkinManager.Instance;
  98. materialSkinManager.AddFormToManage(this);
  99. materialSkinManager.ColorScheme = new ColorScheme(Primary.Red800, Primary.Red900, Primary.Red500, Accent.Red200, TextShade.WHITE);
  100. }
  101.  
  102. private void materialRaisedButton15_Click(object sender, EventArgs e)
  103. {
  104. Clipboard.SetText(script13.Text);
  105. }
  106.  
  107. private void materialRaisedButton6_Click(object sender, EventArgs e)
  108. {
  109. var materialSkinManager = MaterialSkinManager.Instance;
  110. materialSkinManager.AddFormToManage(this);
  111. materialSkinManager.ColorScheme = new ColorScheme(Primary.Orange800, Primary.Orange900, Primary.Orange500, Accent.Orange200, TextShade.WHITE);
  112. }
  113.  
  114. private void materialRaisedButton7_Click(object sender, EventArgs e)
  115. {
  116. var materialSkinManager = MaterialSkinManager.Instance;
  117. materialSkinManager.AddFormToManage(this);
  118. materialSkinManager.ColorScheme = new ColorScheme(Primary.Pink800, Primary.Pink900, Primary.Pink500, Accent.Pink200, TextShade.WHITE);
  119. }
  120.  
  121. private void materialRaisedButton8_Click(object sender, EventArgs e)
  122. {
  123. var materialSkinManager = MaterialSkinManager.Instance;
  124. materialSkinManager.AddFormToManage(this);
  125. materialSkinManager.ColorScheme = new ColorScheme(Primary.Blue800, Primary.Blue900, Primary.Blue500, Accent.Blue200, TextShade.WHITE);
  126. }
  127.  
  128. private void materialRaisedButton12_Click(object sender, EventArgs e)
  129. {
  130. var materialSkinManager = MaterialSkinManager.Instance;
  131. materialSkinManager.AddFormToManage(this);
  132. materialSkinManager.ColorScheme = new ColorScheme(Primary.Purple800, Primary.Purple900, Primary.Purple500, Accent.Purple200, TextShade.WHITE);
  133. }
  134.  
  135. private void materialRaisedButton11_Click(object sender, EventArgs e)
  136. {
  137. var materialSkinManager = MaterialSkinManager.Instance;
  138. materialSkinManager.AddFormToManage(this);
  139. materialSkinManager.ColorScheme = new ColorScheme(Primary.Yellow800, Primary.Yellow900, Primary.Yellow500, Accent.Yellow200, TextShade.WHITE);
  140. }
  141.  
  142. private void materialRaisedButton10_Click(object sender, EventArgs e)
  143. {
  144. var materialSkinManager = MaterialSkinManager.Instance;
  145. materialSkinManager.AddFormToManage(this);
  146. materialSkinManager.ColorScheme = new ColorScheme(Primary.Green800, Primary.Green900, Primary.Green500, Accent.Green200, TextShade.WHITE);
  147. }
  148.  
  149. private void materialRaisedButton9_Click(object sender, EventArgs e)
  150. {
  151. var materialSkinManager = MaterialSkinManager.Instance;
  152. materialSkinManager.AddFormToManage(this);
  153. materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.Blue200, TextShade.WHITE);
  154. }
  155.  
  156. private void materialRaisedButton13_Click(object sender, EventArgs e)
  157. {
  158. this.Opacity = 0.7;
  159. }
  160.  
  161. private void materialRaisedButton5_Click_1(object sender, EventArgs e)
  162. {
  163. Clipboard.SetText(script14.Text);
  164. }
  165.  
  166. private void materialRaisedButton15_Click_1(object sender, EventArgs e)
  167. {
  168. Clipboard.SetText(script15.Text);
  169. }
  170.  
  171. private void materialRaisedButton16_Click(object sender, EventArgs e)
  172. {
  173. Clipboard.SetText(script16.Text);
  174. }
  175.  
  176. private void materialRaisedButton20_Click(object sender, EventArgs e)
  177. {
  178. Clipboard.SetText(script17.Text);
  179. }
  180.  
  181. private void materialRaisedButton19_Click(object sender, EventArgs e)
  182. {
  183. Clipboard.SetText(script18.Text);
  184. }
  185.  
  186. private void materialRaisedButton18_Click(object sender, EventArgs e)
  187. {
  188. Clipboard.SetText(script19.Text);
  189. }
  190.  
  191. private void materialRaisedButton17_Click(object sender, EventArgs e)
  192. {
  193. Clipboard.SetText(script20.Text);
  194. }
  195.  
  196. private void script21_Click(object sender, EventArgs e)
  197. {
  198. Clipboard.SetText(script21.Text);
  199. }
  200.  
  201. private void materialRaisedButton23_Click(object sender, EventArgs e)
  202. {
  203. Clipboard.SetText(script22.Text);
  204. }
  205.  
  206. private void materialRaisedButton22_Click(object sender, EventArgs e)
  207. {
  208. Clipboard.SetText(script23.Text);
  209. }
  210.  
  211. private void materialRaisedButton21_Click(object sender, EventArgs e)
  212. {
  213. Clipboard.SetText(script24.Text);
  214. }
  215.  
  216. private void materialRaisedButton14_Click(object sender, EventArgs e)
  217. {
  218. this.Opacity = 1;
  219. }
  220.  
  221. private void materialRaisedButton24_Click(object sender, EventArgs e)
  222. {
  223. InitializeComponent(); -- init
  224. var skinManager = MaterialSkinManager.Instance;
  225. skinManager.Theme = MaterialSkin.MaterialSkinManager.Themes.DARK; -- changing theme to dark
  226. }
  227.  
  228. private void materialDivider4_Click(object sender, EventArgs e)
  229. {
  230.  
  231. }
  232.  
  233. private void materialRaisedButton25_Click(object sender, EventArgs e)
  234. {
  235.  
  236. }
  237.  
  238. private void pictureBox1_Click(object sender, EventArgs e)
  239. {
  240. }
  241.  
  242. private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
  243. {
  244.  
  245. }
  246.  
  247. private void materialRaisedButton25_Click_1(object sender, EventArgs e)
  248. {
  249.  
  250. }
  251.  
  252. private async void materialRaisedButton24_Click_1(object sender, EventArgs e)
  253. // This handles the saving of a script
  254.  
  255. {
  256. using (SaveFileDialog sfd = new SaveFileDialog() { Filter = "Text Documents|*.txt", ValidateNames = true })
  257. {
  258. if (sfd.ShowDialog() == DialogResult.OK) -- Checking if they pressed OK
  259. {
  260. using (StreamWriter sw = new StreamWriter(sfd.FileName))
  261. {
  262. await sw.WriteLineAsync(textEditorControl2.Text);
  263. MessageBox.Show("Your script has been saved!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); -- Saving the script and prompting a message showing they did
  264. }
  265. }
  266. }
  267. }
  268.  
  269. private void materialRaisedButton25_Click_2(object sender, EventArgs e)
  270. {
  271. textEditorControl2.Text = "";
  272. textEditorControl2.Refresh();
  273. }
  274.  
  275. private void materialRaisedButton26_Click(object sender, EventArgs e)
  276. {
  277.  
  278. }
  279.  
  280. private async void materialRaisedButton26_Click_1(object sender, EventArgs e)
  281. // This handles the opening of a file again.
  282.  
  283. {
  284. using (OpenFileDialog ofd = new OpenFileDialog() { Filter = "Text Documents|*.txt", ValidateNames = true, Multiselect = false })
  285. {
  286. if (ofd.ShowDialog() == DialogResult.OK)
  287. {
  288. using (StreamReader sr = new StreamReader(ofd.FileName))
  289. {
  290. textEditorControl2.Text = await sr.ReadToEndAsync();
  291. }
  292.  
  293.  
  294. }
  295. }
  296.  
  297. }
  298.  
  299. private void materialRaisedButton27_Click(object sender, EventArgs e)
  300. {
  301. MessageBox.Show("Copied To Clipboard!");
  302. Clipboard.SetText(textEditorControl2.Text);
  303. }
  304.  
  305. private void materialRaisedButton40_Click(object sender, EventArgs e)
  306. {
  307.  
  308. }
  309.  
  310. private void materialRaisedButton41_Click(object sender, EventArgs e)
  311. {
  312.  
  313. }
  314.  
  315. private void materialRaisedButton41_Click_1(object sender, EventArgs e)
  316. {
  317. }
  318.  
  319. private void materialRaisedButton40_Click_1(object sender, EventArgs e)
  320. {
  321.  
  322. }
  323.  
  324. private void materialRaisedButton42_Click(object sender, EventArgs e)
  325. {
  326. }
  327.  
  328. private void materialRaisedButton39_Click(object sender, EventArgs e)
  329. {
  330. }
  331.  
  332. private void materialRaisedButton38_Click(object sender, EventArgs e)
  333. {
  334. }
  335.  
  336. private void materialRaisedButton37_Click(object sender, EventArgs e)
  337. {
  338. }
  339.  
  340. private void materialRaisedButton36_Click(object sender, EventArgs e)
  341. {
  342. }
  343.  
  344. private void materialRaisedButton35_Click(object sender, EventArgs e)
  345. {
  346. }
  347.  
  348. private void materialRaisedButton34_Click(object sender, EventArgs e)
  349. {
  350. }
  351.  
  352. private void materialRaisedButton33_Click(object sender, EventArgs e)
  353. {
  354. }
  355.  
  356. private void materialRaisedButton32_Click(object sender, EventArgs e)
  357. {
  358. }
  359.  
  360. private void materialRaisedButton31_Click(object sender, EventArgs e)
  361. {
  362. }
  363.  
  364. private void materialRaisedButton30_Click(object sender, EventArgs e)
  365. {
  366. }
  367.  
  368. private void materialRaisedButton29_Click(object sender, EventArgs e)
  369. {
  370. }
  371.  
  372. private void materialRaisedButton28_Click(object sender, EventArgs e)
  373. {
  374. }
  375.  
  376. private void materialRaisedButton1_Click_1(object sender, EventArgs e)
  377. {
  378. }
  379.  
  380. private void materialRaisedButton2_Click_1(object sender, EventArgs e)
  381. {
  382. }
  383.  
  384. private void materialRaisedButton3_Click_1(object sender, EventArgs e)
  385. {
  386.  
  387. }
  388.  
  389. private void materialRaisedButton39_Click_1(object sender, EventArgs e)
  390. {
  391. Clipboard.SetText(script1.Text);
  392. }
  393.  
  394. private void materialRaisedButton38_Click_1(object sender, EventArgs e)
  395. {
  396. Clipboard.SetText(script2.Text);
  397. }
  398.  
  399. private void materialRaisedButton37_Click_1(object sender, EventArgs e)
  400. {
  401. Clipboard.SetText(script3.Text);
  402. }
  403.  
  404. private void materialRaisedButton36_Click_1(object sender, EventArgs e)
  405. {
  406. Clipboard.SetText(script4.Text);
  407. }
  408.  
  409. private void materialRaisedButton35_Click_1(object sender, EventArgs e)
  410. {
  411. Clipboard.SetText(script5.Text);
  412. }
  413.  
  414. private void materialRaisedButton34_Click_1(object sender, EventArgs e)
  415. {
  416. Clipboard.SetText(script6.Text);
  417. }
  418.  
  419. private void materialRaisedButton33_Click_1(object sender, EventArgs e)
  420. {
  421. Clipboard.SetText(script7.Text);
  422. }
  423.  
  424. private void materialRaisedButton32_Click_1(object sender, EventArgs e)
  425. {
  426. Clipboard.SetText(script8.Text);
  427. }
  428.  
  429. private void materialRaisedButton31_Click_1(object sender, EventArgs e)
  430. {
  431. Clipboard.SetText(script9.Text);
  432. }
  433.  
  434. private void materialRaisedButton30_Click_1(object sender, EventArgs e)
  435. {
  436. Clipboard.SetText(script10.Text);
  437. }
  438.  
  439. private void materialRaisedButton29_Click_1(object sender, EventArgs e)
  440. {
  441. Clipboard.SetText(script11.Text);
  442. }
  443.  
  444. private void materialRaisedButton28_Click_1(object sender, EventArgs e)
  445. {
  446. Clipboard.SetText(script12.Text);
  447. }
  448.  
  449. private void materialRaisedButton4_Click_1(object sender, EventArgs e)
  450. {
  451. Clipboard.SetText(script666.Text);
  452. }
  453.  
  454. private void materialRaisedButton1_Click_2(object sender, EventArgs e)
  455. {
  456.  
  457. }
  458.  
  459. private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
  460. {
  461.  
  462. }
  463.  
  464. private async void listBox1_SelectedIndexChanged_1(object sender, EventArgs e)
  465. // This handles the selecting of a script of their choice.
  466.  
  467. {
  468. string value1 = listBox1.SelectedItem.ToString();
  469.  
  470. using (StreamReader sr = new StreamReader(@"scripts/" + value1))
  471. {
  472. {
  473. String line = await sr.ReadToEndAsync();
  474. textEditorControl1.Text = line;
  475. }
  476. }
  477.  
  478. }
  479.  
  480.  
  481. private void materialFlatButton1_Click(object sender, EventArgs e)
  482. {
  483.  
  484. }
  485.  
  486. private async void materialRaisedButton40_Click_2(object sender, EventArgs e)
  487. // This handles the loading of the file that they created.
  488.  
  489. {
  490. using (OpenFileDialog ofd = new OpenFileDialog() { Filter = "Text Documents|*.txt", ValidateNames = true, Multiselect = false })
  491. {
  492. if (ofd.ShowDialog() == DialogResult.OK)
  493. {
  494. using (StreamReader sr = new StreamReader(ofd.FileName))
  495. {
  496. textEditorControl1.Text = await sr.ReadToEndAsync();
  497. }
  498. }
  499. }
  500. }
  501.  
  502. private async void materialRaisedButton41_Click_2(object sender, EventArgs e)
  503. // This handles the saving of the script the user created.
  504.  
  505. {
  506. using (SaveFileDialog sfd = new SaveFileDialog() { Filter = "Text Documents|*.txt", ValidateNames = true })
  507. {
  508. if (sfd.ShowDialog() == DialogResult.OK)
  509. {
  510. using (StreamWriter sw = new StreamWriter(sfd.FileName))
  511. {
  512. await sw.WriteLineAsync(textEditorControl1.Text);
  513. MessageBox.Show("Script has been saved!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
  514. }
  515. }
  516. }
  517. }
  518.  
  519. private void materialRaisedButton42_Click_1(object sender, EventArgs e)
  520. {
  521. Clipboard.SetText(textEditorControl1.Text);
  522. }
  523.  
  524. private void materialRaisedButton43_Click(object sender, EventArgs e)
  525.  
  526. {
  527. textEditorControl1.Text = "";
  528. textEditorControl1.Refresh();
  529.  
  530. }
  531.  
  532.  
  533. private void progressBar1_Click(object sender, EventArgs e)
  534. {
  535.  
  536. }
  537.  
  538. private void materialRaisedButton44_Click(object sender, EventArgs e)
  539. {
  540.  
  541. }
  542.  
  543. private void materialRaisedButton44_Click_1(object sender, EventArgs e)
  544. {
  545. var materialSkinManager = MaterialSkinManager.Instance;
  546. materialSkinManager.AddFormToManage(this);
  547. materialSkinManager.Theme = MaterialSkinManager.Themes.DARK;
  548. }
  549.  
  550. private void materialRaisedButton45_Click(object sender, EventArgs e)
  551. {
  552. var materialSkinManager = MaterialSkinManager.Instance;
  553. materialSkinManager.AddFormToManage(this);
  554. materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;
  555. }
  556.  
  557. private void materialLabel1_Click(object sender, EventArgs e)
  558. {
  559.  
  560. }
  561.  
  562. private void materialRaisedButton46_Click(object sender, EventArgs e)
  563. {
  564.  
  565. }
  566.  
  567. private void textEditorControl1_Load(object sender, EventArgs e)
  568. {
  569.  
  570. }
  571. }
  572. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement