Advertisement
iceymods

f

Feb 17th, 2018
16,595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using MetroFramework;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. using System.IO;
  12.  
  13. namespace GoogleMainSend
  14. {
  15. public partial class Form1 : MetroFramework.Forms.MetroForm
  16. {
  17. public Form1()
  18. {
  19. InitializeComponent();
  20. }
  21. int i = 0;
  22. private void Form1_Load(object sender, EventArgs e)
  23. {
  24.  
  25. }
  26.  
  27. private void metroButton2_Click(object sender, EventArgs e)
  28. {
  29. using (var fbd = new FolderBrowserDialog())
  30. {
  31. DialogResult result = fbd.ShowDialog();
  32.  
  33. if (result == DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
  34. {
  35. string[] files = Directory.GetFiles(fbd.SelectedPath);
  36.  
  37. metroTextBox1.Text = fbd.SelectedPath;
  38. }
  39. }
  40. }
  41.  
  42. private void metroButton1_Click(object sender, EventArgs e)
  43. {
  44. Directory.CreateDirectory(metroTextBox1.Text + @"\" + metroTextBox2.Text);
  45. }
  46.  
  47. private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  48. {
  49.  
  50. MessageBox.Show("My Creator:\nIce / icey.7\nMedia:\nInstagram: icey.7\nSteam:\nclfice", "Creator", MessageBoxButtons.OK, MessageBoxIcon.Information);
  51. }
  52.  
  53. private void metroButton3_Click(object sender, EventArgs e)
  54. {
  55. using (var fbd = new FolderBrowserDialog())
  56. {
  57. DialogResult result = fbd.ShowDialog();
  58.  
  59. if (result == DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
  60. {
  61. string[] files = Directory.GetFiles(fbd.SelectedPath);
  62.  
  63. metroTextBox4.Text = fbd.SelectedPath;
  64. }
  65. }
  66. }
  67.  
  68.  
  69. private void metroButton5_Click(object sender, EventArgs e)
  70. {
  71.  
  72. //int a = Convert.ToInt32(numericUpDown1.Value);
  73. }
  74.  
  75. private void metroButton4_Click(object sender, EventArgs e)
  76. {
  77. if (checkBox1.Checked)
  78. {
  79. timer1.Start();
  80. timer2.Start();
  81. }
  82. //a++;
  83. Directory.CreateDirectory(metroTextBox4.Text + @"\" + metroTextBox3.Text + numericUpDown1.Value++);
  84.  
  85. }
  86. int j = 1;
  87. bool b = Convert.ToBoolean(60);
  88. string d = "60";
  89. private void timer1_Tick(object sender, EventArgs e)
  90. {
  91. if (Directory.Exists(metroTextBox4.Text + @"\" + metroTextBox3.Text + numericUpDown2.Value))
  92. {
  93. timer1.Stop();
  94. timer2.Stop();
  95. }
  96. if(label2.Text == "60")
  97. {
  98. j++;
  99. label1.Text = j.ToString();
  100. }
  101. Directory.CreateDirectory(metroTextBox4.Text + @"\" + metroTextBox3.Text + numericUpDown1.Value++);
  102. }
  103.  
  104. private void button1_Click(object sender, EventArgs e)
  105. {
  106. timer2.Start();
  107. }
  108. int h = 0;
  109. int oo = 10;
  110. int pk = 11;
  111. private void timer2_Tick(object sender, EventArgs e)
  112. {
  113. if (label2.Text == "60")
  114. {
  115. numericUpDown4.Value = 0;
  116. int h = 0;
  117. label2.Text = "0";
  118. label1.Text = "0" + j++.ToString() + " :";
  119. }
  120. else
  121. {
  122.  
  123. numericUpDown4.Value++;
  124. label2.Text = numericUpDown4.Value.ToString();
  125. }
  126.  
  127. }
  128. }
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement