Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.09 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 System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.Threading;
  11. using System.Diagnostics;
  12.  
  13. namespace ReasonsWhy
  14. {
  15. public partial class Form1 : Form
  16. {
  17. static string[] reasons =
  18. {
  19. "I love the way you look at me.",
  20. "You make me feel like I’m the only person in the world.",
  21. "With you I can be myself.",
  22. "I love you because we are family and friends at the same time.",
  23. "When we’re together, all my problems disappear.",
  24. "You make my heart smile.",
  25. "You have the smoothest skin. I could spend hours just watching and caressing it.",
  26. "You make me smile when nobody else can.",
  27. "Because I miss you… even when you’re in the next room.",
  28. "You let me be myself and you encourage me to find more of myself.",
  29. "You are truthful and vulnerable with me.",
  30. "You encourage me after I feel like I’ve failed.",
  31. "You make me feel like I can get through anything, as long as I have you.",
  32. "You sacrifice and work so hard, without even realizing that you are.",
  33. "You always make time for just the two of us.",
  34. "Because you are determined to make this relationship work.",
  35. "Because you help me see negative things differently.",
  36. "Because when you laugh it makes me laugh!",
  37. "We understand each other so well.",
  38. "Your arms feel more like home than any house ever did.",
  39. "You have the ability to comfort me simply by your touch.",
  40. "Because you are so sexy and I can’t believe I get to call you mine.",
  41. "Because when things don’t go as planned, you roll with it, instead of getting stressed.",
  42. "You always believe in me and inspire me.",
  43. "I can always talk to you.",
  44. "Because I can see how much you love being there for me.",
  45. "I love you because you picked me.",
  46. "Your eyes smile when you laugh.",
  47. "You let me pick the movie.",
  48. "You are sweeter than my favorite dessert.",
  49. "You love me even when I’m being horrible and hard to be around.",
  50. "Because you always treat everyone well.",
  51. "We’re so different and yet so the same.",
  52. "You are doing everything to become a better person for yourself and for us.",
  53. "I love how you put so much thought into everything you do for me.",
  54. "I love you because you gave me the gift of yourself.",
  55. "You make me a better person.",
  56. "I love you every time you reach across our bed to pull me close to you.",
  57. "Because you make me feel special.",
  58. "You have a gentle and calming voice that soothes me when I’m upset.",
  59. "The day I met you, I found my missing piece.",
  60. "Because I can be myself around you.",
  61. "Because you trust me unconditionally.",
  62. "You are always pushing me to be better and my biggest fan in all that I do.",
  63. "You make all of my dreams come true, no matter how small they are.",
  64. "You can always make me roll on the floor laughing.",
  65. "Your willingness always to try new things make my life full of adventures.",
  66. "You are always kind to other people, even if they don’t deserve it.",
  67. "Because I can’t imagine life without you.",
  68. "You know the secret, little things that cheer me up and make me happy.",
  69. "You only seem to notice my strengths and always have confidence in me.",
  70. "You don’t just tell me you love me, you show me.",
  71. "You know how to cheer me up when I’m sad.",
  72. "You care deeply about my success and my happiness.",
  73. "You follow me and you push me.",
  74. "You always have an idea of something fun to do.",
  75. "You make me feel completely cherished and adored.",
  76. "You care about the people around you.",
  77. "You are patient and loving with those close to you.",
  78. "You’re always there when I need a shoulder to cry on.",
  79. "You are smoking hot!",
  80. "I love your cuddles.",
  81. "You may not always agree with my decisions but you always trust me to make them.",
  82. "I love that you ask about my day.",
  83. "You have the courage to chase your dreams.",
  84. "You still give me butterflies.",
  85. "You tell great stories.",
  86. "You are great at giving people compliments.",
  87. "You’re cute when you’re grumpy.",
  88. "I love that your hand fits perfectly with mine.",
  89. "I love that I get to go through life with you.",
  90. "We spend lots of time talking about our future together.",
  91. "You tell me why you love me.",
  92. "You’re the calm in the storm.",
  93. "You make me feel so safe.",
  94. "I love how you’re able to make me laugh, even when the situation shouldn’t be funny.",
  95. "You are everything I never knew I needed.",
  96. "I love that you let me cuddle up REALLY close to you… even when you’re overheating.",
  97. "You’re not afraid to be silly with me.",
  98. "You’re always saving funny memes on your phone to show me later because you want me to laugh too.",
  99. "I love that you make my fears melt away.",
  100. "When you talk to people you’re focused on them.",
  101. "You put other’s needs before your own.",
  102. "Your kisses make me weak in the knees.",
  103. "I love that you take care of me when I forget to.",
  104. "You’re always doing little, creative things to let me know you care.",
  105. "You wake up with a smile in the morning.",
  106. "You know when to help and when to let me do it myself.",
  107. "You’re a great person to talk decisions over with. You don’t tell me what I should do but you give me great feedback and listen.",
  108. "You don’t change depending on who you’re with.",
  109. "You make me laugh, even when I feel like crying."
  110. };
  111. public Form1()
  112. {
  113. InitializeComponent();
  114. }
  115. public static class StorageClass
  116. {
  117. public static int storage1;
  118. public static int storage2;
  119. public static int storage3;
  120. public static int storage4;
  121. public static int count;
  122. }
  123. async Task PutTaskDelay(int yes)
  124. {
  125. await Task.Delay(yes);
  126. }
  127. public string ChooseRandomName(List<string> names)
  128. {
  129. Random rnd = new Random();
  130. return names[rnd.Next(0, names.Count)];
  131. }
  132. private async void Button1_Click(object sender, EventArgs e)
  133. {
  134. StorageClass.storage1 = 0;
  135. StorageClass.storage2 = 0;
  136. StorageClass.storage3 = 0;
  137. StorageClass.storage4 = 0;
  138. StorageClass.count = 1;
  139. button1.Visible = false;
  140. await PutTaskDelay(1000);
  141. label2.Visible = true;
  142. await PutTaskDelay(4000);
  143. label2.Visible = false;
  144. await PutTaskDelay(1000);
  145.  
  146. label1.Visible = true;
  147. await PutTaskDelay(4000);
  148. label1.Visible = false;
  149. await PutTaskDelay(1000);
  150.  
  151. label4.Visible = true;
  152. await PutTaskDelay(4000);
  153. label4.Visible = false;
  154. await PutTaskDelay(1000);
  155.  
  156. label11.Visible = true;
  157. await PutTaskDelay(4000);
  158. label11.Visible = false;
  159. await PutTaskDelay(3000);
  160.  
  161. label3.Visible = true;
  162. await PutTaskDelay(2000);
  163. label3.Visible = false;
  164. await PutTaskDelay(2000);
  165.  
  166. button2.Visible = true;
  167. }
  168.  
  169. private async void Button2_Click(object sender, EventArgs e)
  170. {
  171. button2.Visible = false;
  172. pictureBox1.Image = ReasonsWhy.Properties.Resources.YourName1;
  173. await PutTaskDelay(1000);
  174. label5.Visible = true;
  175. await PutTaskDelay(2000);
  176. label5.Visible = false;
  177. button3.Visible = true;
  178. }
  179.  
  180. private async void Button3_Click(object sender, EventArgs e)
  181. {
  182. button3.Visible = false;
  183. button4.Visible = false;
  184. StorageClass.count++;
  185. string text = "reason number " + StorageClass.count;
  186. button3.Text = text;
  187. Random rnd = new Random();
  188. while (StorageClass.storage1 == StorageClass.storage2)
  189. {
  190. StorageClass.storage1 = rnd.Next(0, 4);
  191. }
  192. StorageClass.storage2 = StorageClass.storage1;
  193. while (StorageClass.storage3 == StorageClass.storage4)
  194. {
  195. StorageClass.storage3 = rnd.Next(0, 94);
  196. }
  197. StorageClass.storage4 = StorageClass.storage3;
  198. int val2 = StorageClass.storage4;
  199. switch (StorageClass.storage1)
  200. {
  201. case 0:
  202. label6.Text = reasons[val2];
  203. label6.Visible = true;
  204. await PutTaskDelay(5000);
  205. label6.Visible = false;
  206. break;
  207. case 1:
  208. label7.Text = reasons[val2];
  209. label7.Visible = true;
  210. await PutTaskDelay(5000);
  211. label7.Visible = false;
  212. break;
  213. case 2:
  214. label8.Text = reasons[val2];
  215. label8.Visible = true;
  216. await PutTaskDelay(5000);
  217. label8.Visible = false;
  218. break;
  219. case 3:
  220. label9.Text = reasons[val2];
  221. label9.Visible = true;
  222. await PutTaskDelay(5000);
  223. label9.Visible = false;
  224. break;
  225. case 4:
  226. label10.Text = reasons[val2];
  227. label10.Visible = true;
  228. await PutTaskDelay(5000);
  229. label10.Visible = false;
  230. break;
  231. }
  232. button3.Visible = true;
  233. button4.Visible = true;
  234. }
  235.  
  236. private async void Button4_Click(object sender, EventArgs e)
  237. {
  238. button4.Visible = false;
  239. int val2 = StorageClass.storage4;
  240. switch (StorageClass.storage1)
  241. {
  242. case 0:
  243. label6.Text = reasons[val2];
  244. label6.Visible = true;
  245. await PutTaskDelay(5000);
  246. label6.Visible = false;
  247. break;
  248. case 1:
  249. label7.Text = reasons[val2];
  250. label7.Visible = true;
  251. await PutTaskDelay(5000);
  252. label7.Visible = false;
  253. break;
  254. case 2:
  255. label8.Text = reasons[val2];
  256. label8.Visible = true;
  257. await PutTaskDelay(5000);
  258. label8.Visible = false;
  259. break;
  260. case 3:
  261. label9.Text = reasons[val2];
  262. label9.Visible = true;
  263. await PutTaskDelay(5000);
  264. label9.Visible = false;
  265. break;
  266. case 4:
  267. label10.Text = reasons[val2];
  268. label10.Visible = true;
  269. await PutTaskDelay(5000);
  270. label10.Visible = false;
  271. break;
  272. }
  273. button4.Visible = true;
  274. }
  275. }
  276. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement