Advertisement
Guest User

hmm

a guest
Aug 4th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.78 KB | None | 0 0
  1.  
  2. using agsXMPP;
  3. using agsXMPP.Xml.Dom;
  4. using Max_Room_Freezer_v._1._0.My;
  5. using Microsoft.VisualBasic.CompilerServices;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.ComponentModel;
  9. using System.Diagnostics;
  10. using System.Drawing;
  11. using System.Runtime.CompilerServices;
  12. using System.Windows.Forms;
  13. namespace Max_Room_Freezer_v._1._0
  14. {
  15. [DesignerGenerated]
  16. public class Form1 : Form
  17. {
  18. private IContainer components;
  19. [AccessedThroughProperty("GroupBox1")]
  20. private GroupBox _GroupBox1;
  21. [AccessedThroughProperty("idbox")]
  22. private TextBox _idbox;
  23. [AccessedThroughProperty("Label1")]
  24. private Label _Label1;
  25. [AccessedThroughProperty("pw")]
  26. private TextBox _pw;
  27. [AccessedThroughProperty("CheckBox1")]
  28. private CheckBox _CheckBox1;
  29. [AccessedThroughProperty("GroupBox2")]
  30. private GroupBox _GroupBox2;
  31. [AccessedThroughProperty("room")]
  32. private TextBox _room;
  33. [AccessedThroughProperty("StatusStrip1")]
  34. private StatusStrip _StatusStrip1;
  35. [AccessedThroughProperty("Button1")]
  36. private Button _Button1;
  37. [AccessedThroughProperty("CheckBox2")]
  38. private CheckBox _CheckBox2;
  39. [AccessedThroughProperty("Button2")]
  40. private Button _Button2;
  41. [AccessedThroughProperty("tsts")]
  42. private ToolStripStatusLabel _tsts;
  43. [AccessedThroughProperty("pb")]
  44. private ToolStripProgressBar _pb;
  45. [AccessedThroughProperty("sts")]
  46. private ListBox _sts;
  47. [AccessedThroughProperty("Timer1")]
  48. private Timer _Timer1;
  49. [AccessedThroughProperty("Timer2")]
  50. private Timer _Timer2;
  51. [AccessedThroughProperty("Label2")]
  52. private Label _Label2;
  53. [AccessedThroughProperty("NumericUpDown2")]
  54. private NumericUpDown _NumericUpDown2;
  55. [AccessedThroughProperty("Label4")]
  56. private Label _Label4;
  57. [AccessedThroughProperty("Label3")]
  58. private Label _Label3;
  59. [AccessedThroughProperty("Label5")]
  60. private Label _Label5;
  61. [AccessedThroughProperty("NumericUpDown1")]
  62. private NumericUpDown _NumericUpDown1;
  63. private List<XmppClientConnection> IdsList;
  64. private List<Freezer> sockets;
  65. private bool ac;
  66. private int timerval;
  67. private int t2val;
  68. internal virtual GroupBox GroupBox1
  69. {
  70. get
  71. {
  72. return this._GroupBox1;
  73. }
  74. [MethodImpl(MethodImplOptions.Synchronized)]
  75. set
  76. {
  77. this._GroupBox1 = value;
  78. }
  79. }
  80. internal virtual TextBox idbox
  81. {
  82. get
  83. {
  84. return this._idbox;
  85. }
  86. [MethodImpl(MethodImplOptions.Synchronized)]
  87. set
  88. {
  89. EventHandler value2 = new EventHandler(this.idbox_TextChanged);
  90. if (this._idbox != null)
  91. {
  92. this._idbox.TextChanged -= value2;
  93. }
  94. this._idbox = value;
  95. if (this._idbox != null)
  96. {
  97. this._idbox.TextChanged += value2;
  98. }
  99. }
  100. }
  101. internal virtual Label Label1
  102. {
  103. get
  104. {
  105. return this._Label1;
  106. }
  107. [MethodImpl(MethodImplOptions.Synchronized)]
  108. set
  109. {
  110. this._Label1 = value;
  111. }
  112. }
  113. internal virtual TextBox pw
  114. {
  115. get
  116. {
  117. return this._pw;
  118. }
  119. [MethodImpl(MethodImplOptions.Synchronized)]
  120. set
  121. {
  122. this._pw = value;
  123. }
  124. }
  125. internal virtual CheckBox CheckBox1
  126. {
  127. get
  128. {
  129. return this._CheckBox1;
  130. }
  131. [MethodImpl(MethodImplOptions.Synchronized)]
  132. set
  133. {
  134. EventHandler value2 = new EventHandler(this.CheckBox1_CheckedChanged);
  135. if (this._CheckBox1 != null)
  136. {
  137. this._CheckBox1.CheckedChanged -= value2;
  138. }
  139. this._CheckBox1 = value;
  140. if (this._CheckBox1 != null)
  141. {
  142. this._CheckBox1.CheckedChanged += value2;
  143. }
  144. }
  145. }
  146. internal virtual GroupBox GroupBox2
  147. {
  148. get
  149. {
  150. return this._GroupBox2;
  151. }
  152. [MethodImpl(MethodImplOptions.Synchronized)]
  153. set
  154. {
  155. this._GroupBox2 = value;
  156. }
  157. }
  158. internal virtual TextBox room
  159. {
  160. get
  161. {
  162. return this._room;
  163. }
  164. [MethodImpl(MethodImplOptions.Synchronized)]
  165. set
  166. {
  167. this._room = value;
  168. }
  169. }
  170. internal virtual StatusStrip StatusStrip1
  171. {
  172. get
  173. {
  174. return this._StatusStrip1;
  175. }
  176. [MethodImpl(MethodImplOptions.Synchronized)]
  177. set
  178. {
  179. this._StatusStrip1 = value;
  180. }
  181. }
  182. internal virtual Button Button1
  183. {
  184. get
  185. {
  186. return this._Button1;
  187. }
  188. [MethodImpl(MethodImplOptions.Synchronized)]
  189. set
  190. {
  191. EventHandler value2 = new EventHandler(this.Button1_Click);
  192. if (this._Button1 != null)
  193. {
  194. this._Button1.Click -= value2;
  195. }
  196. this._Button1 = value;
  197. if (this._Button1 != null)
  198. {
  199. this._Button1.Click += value2;
  200. }
  201. }
  202. }
  203. internal virtual CheckBox CheckBox2
  204. {
  205. get
  206. {
  207. return this._CheckBox2;
  208. }
  209. [MethodImpl(MethodImplOptions.Synchronized)]
  210. set
  211. {
  212. EventHandler value2 = new EventHandler(this.CheckBox2_CheckedChanged);
  213. if (this._CheckBox2 != null)
  214. {
  215. this._CheckBox2.CheckedChanged -= value2;
  216. }
  217. this._CheckBox2 = value;
  218. if (this._CheckBox2 != null)
  219. {
  220. this._CheckBox2.CheckedChanged += value2;
  221. }
  222. }
  223. }
  224. internal virtual Button Button2
  225. {
  226. get
  227. {
  228. return this._Button2;
  229. }
  230. [MethodImpl(MethodImplOptions.Synchronized)]
  231. set
  232. {
  233. EventHandler value2 = new EventHandler(this.Button2_Click);
  234. if (this._Button2 != null)
  235. {
  236. this._Button2.Click -= value2;
  237. }
  238. this._Button2 = value;
  239. if (this._Button2 != null)
  240. {
  241. this._Button2.Click += value2;
  242. }
  243. }
  244. }
  245. internal virtual ToolStripStatusLabel tsts
  246. {
  247. get
  248. {
  249. return this._tsts;
  250. }
  251. [MethodImpl(MethodImplOptions.Synchronized)]
  252. set
  253. {
  254. EventHandler value2 = new EventHandler(this.tsts_Click);
  255. if (this._tsts != null)
  256. {
  257. this._tsts.Click -= value2;
  258. }
  259. this._tsts = value;
  260. if (this._tsts != null)
  261. {
  262. this._tsts.Click += value2;
  263. }
  264. }
  265. }
  266. internal virtual ToolStripProgressBar pb
  267. {
  268. get
  269. {
  270. return this._pb;
  271. }
  272. [MethodImpl(MethodImplOptions.Synchronized)]
  273. set
  274. {
  275. this._pb = value;
  276. }
  277. }
  278. public virtual ListBox sts
  279. {
  280. get
  281. {
  282. return this._sts;
  283. }
  284. [MethodImpl(MethodImplOptions.Synchronized)]
  285. set
  286. {
  287. this._sts = value;
  288. }
  289. }
  290. internal virtual Timer Timer1
  291. {
  292. get
  293. {
  294. return this._Timer1;
  295. }
  296. [MethodImpl(MethodImplOptions.Synchronized)]
  297. set
  298. {
  299. EventHandler value2 = new EventHandler(this.Timer1_Tick);
  300. if (this._Timer1 != null)
  301. {
  302. this._Timer1.Tick -= value2;
  303. }
  304. this._Timer1 = value;
  305. if (this._Timer1 != null)
  306. {
  307. this._Timer1.Tick += value2;
  308. }
  309. }
  310. }
  311. internal virtual Timer Timer2
  312. {
  313. get
  314. {
  315. return this._Timer2;
  316. }
  317. [MethodImpl(MethodImplOptions.Synchronized)]
  318. set
  319. {
  320. EventHandler value2 = new EventHandler(this.Timer2_Tick);
  321. if (this._Timer2 != null)
  322. {
  323. this._Timer2.Tick -= value2;
  324. }
  325. this._Timer2 = value;
  326. if (this._Timer2 != null)
  327. {
  328. this._Timer2.Tick += value2;
  329. }
  330. }
  331. }
  332. internal virtual Label Label2
  333. {
  334. get
  335. {
  336. return this._Label2;
  337. }
  338. [MethodImpl(MethodImplOptions.Synchronized)]
  339. set
  340. {
  341. this._Label2 = value;
  342. }
  343. }
  344. internal virtual NumericUpDown NumericUpDown2
  345. {
  346. get
  347. {
  348. return this._NumericUpDown2;
  349. }
  350. [MethodImpl(MethodImplOptions.Synchronized)]
  351. set
  352. {
  353. this._NumericUpDown2 = value;
  354. }
  355. }
  356. internal virtual Label Label4
  357. {
  358. get
  359. {
  360. return this._Label4;
  361. }
  362. [MethodImpl(MethodImplOptions.Synchronized)]
  363. set
  364. {
  365. this._Label4 = value;
  366. }
  367. }
  368. internal virtual Label Label3
  369. {
  370. get
  371. {
  372. return this._Label3;
  373. }
  374. [MethodImpl(MethodImplOptions.Synchronized)]
  375. set
  376. {
  377. this._Label3 = value;
  378. }
  379. }
  380. internal virtual Label Label5
  381. {
  382. get
  383. {
  384. return this._Label5;
  385. }
  386. [MethodImpl(MethodImplOptions.Synchronized)]
  387. set
  388. {
  389. this._Label5 = value;
  390. }
  391. }
  392. internal virtual NumericUpDown NumericUpDown1
  393. {
  394. get
  395. {
  396. return this._NumericUpDown1;
  397. }
  398. [MethodImpl(MethodImplOptions.Synchronized)]
  399. set
  400. {
  401. this._NumericUpDown1 = value;
  402. }
  403. }
  404. public Form1()
  405. {
  406. base.FormClosing += new FormClosingEventHandler(this.Form1_FormClosing);
  407. base.Load += new EventHandler(this.Form1_Load);
  408. this.IdsList = new List<XmppClientConnection>();
  409. this.sockets = new List<Freezer>();
  410. this.ac = false;
  411. this.InitializeComponent();
  412. }
  413. [DebuggerNonUserCode]
  414. protected override void Dispose(bool disposing)
  415. {
  416. try
  417. {
  418. if (disposing && this.components != null)
  419. {
  420. this.components.Dispose();
  421. }
  422. }
  423. finally
  424. {
  425. base.Dispose(disposing);
  426. }
  427. }
  428. [DebuggerStepThrough]
  429. private void InitializeComponent()
  430. {
  431. this.components = new Container();
  432. ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Form1));
  433. this.GroupBox1 = new GroupBox();
  434. this.CheckBox1 = new CheckBox();
  435. this.pw = new TextBox();
  436. this.Label1 = new Label();
  437. this.idbox = new TextBox();
  438. this.GroupBox2 = new GroupBox();
  439. this.room = new TextBox();
  440. this.StatusStrip1 = new StatusStrip();
  441. this.tsts = new ToolStripStatusLabel();
  442. this.pb = new ToolStripProgressBar();
  443. this.sts = new ListBox();
  444. this.Button1 = new Button();
  445. this.CheckBox2 = new CheckBox();
  446. this.Button2 = new Button();
  447. this.Timer1 = new Timer(this.components);
  448. this.Timer2 = new Timer(this.components);
  449. this.Label2 = new Label();
  450. this.NumericUpDown2 = new NumericUpDown();
  451. this.Label4 = new Label();
  452. this.Label3 = new Label();
  453. this.Label5 = new Label();
  454. this.NumericUpDown1 = new NumericUpDown();
  455. this.GroupBox1.SuspendLayout();
  456. this.GroupBox2.SuspendLayout();
  457. this.StatusStrip1.SuspendLayout();
  458. ((ISupportInitialize)this.NumericUpDown2).BeginInit();
  459. ((ISupportInitialize)this.NumericUpDown1).BeginInit();
  460. this.SuspendLayout();
  461. this.GroupBox1.Controls.Add(this.CheckBox1);
  462. this.GroupBox1.Controls.Add(this.pw);
  463. this.GroupBox1.Controls.Add(this.Label1);
  464. this.GroupBox1.Controls.Add(this.idbox);
  465. this.GroupBox1.Dock = DockStyle.Top;
  466. Control arg_1CA_0 = this.GroupBox1;
  467. Point location = new Point(0, 0);
  468. arg_1CA_0.Location = location;
  469. this.GroupBox1.Name = "GroupBox1";
  470. Control arg_1F8_0 = this.GroupBox1;
  471. Size size = new Size(376, 133);
  472. arg_1F8_0.Size = size;
  473. this.GroupBox1.TabIndex = 0;
  474. this.GroupBox1.TabStop = false;
  475. this.GroupBox1.Text = "Flood ids [0]";
  476. this.CheckBox1.Appearance = Appearance.Button;
  477. this.CheckBox1.AutoSize = true;
  478. Control arg_252_0 = this.CheckBox1;
  479. location = new Point(277, 102);
  480. arg_252_0.Location = location;
  481. this.CheckBox1.Name = "CheckBox1";
  482. Control arg_27A_0 = this.CheckBox1;
  483. size = new Size(73, 23);
  484. arg_27A_0.Size = size;
  485. this.CheckBox1.TabIndex = 1;
  486. this.CheckBox1.Text = "&Connect ids";
  487. this.CheckBox1.UseVisualStyleBackColor = true;
  488. Control arg_2B9_0 = this.pw;
  489. location = new Point(68, 104);
  490. arg_2B9_0.Location = location;
  491. this.pw.Name = "pw";
  492. Control arg_2E4_0 = this.pw;
  493. size = new Size(203, 20);
  494. arg_2E4_0.Size = size;
  495. this.pw.TabIndex = 1;
  496. this.Label1.AutoSize = true;
  497. Control arg_312_0 = this.Label1;
  498. location = new Point(6, 107);
  499. arg_312_0.Location = location;
  500. this.Label1.Name = "Label1";
  501. Control arg_33A_0 = this.Label1;
  502. size = new Size(56, 13);
  503. arg_33A_0.Size = size;
  504. this.Label1.TabIndex = 2;
  505. this.Label1.Text = "Password:";
  506. this.idbox.Dock = DockStyle.Top;
  507. Control arg_378_0 = this.idbox;
  508. location = new Point(3, 16);
  509. arg_378_0.Location = location;
  510. this.idbox.Multiline = true;
  511. this.idbox.Name = "idbox";
  512. this.idbox.ScrollBars = ScrollBars.Both;
  513. Control arg_3BB_0 = this.idbox;
  514. size = new Size(370, 79);
  515. arg_3BB_0.Size = size;
  516. this.idbox.TabIndex = 0;
  517. this.GroupBox2.Controls.Add(this.room);
  518. Control arg_3F6_0 = this.GroupBox2;
  519. location = new Point(3, 139);
  520. arg_3F6_0.Location = location;
  521. this.GroupBox2.Name = "GroupBox2";
  522. Control arg_421_0 = this.GroupBox2;
  523. size = new Size(370, 44);
  524. arg_421_0.Size = size;
  525. this.GroupBox2.TabIndex = 1;
  526. this.GroupBox2.TabStop = false;
  527. this.GroupBox2.Text = "Roomname";
  528. Control arg_460_0 = this.room;
  529. location = new Point(9, 19);
  530. arg_460_0.Location = location;
  531. this.room.Name = "room";
  532. Control arg_48B_0 = this.room;
  533. size = new Size(352, 20);
  534. arg_48B_0.Size = size;
  535. this.room.TabIndex = 0;
  536. this.StatusStrip1.Items.AddRange(new ToolStripItem[]
  537. {
  538. this.tsts,
  539. this.pb
  540. });
  541. Control arg_4DE_0 = this.StatusStrip1;
  542. location = new Point(0, 529);
  543. arg_4DE_0.Location = location;
  544. this.StatusStrip1.Name = "StatusStrip1";
  545. Control arg_509_0 = this.StatusStrip1;
  546. size = new Size(376, 22);
  547. arg_509_0.Size = size;
  548. this.StatusStrip1.TabIndex = 2;
  549. this.StatusStrip1.Text = "StatusStrip1";
  550. this.tsts.BackColor = Color.Transparent;
  551. this.tsts.Name = "tsts";
  552. ToolStripItem arg_55D_0 = this.tsts;
  553. size = new Size(16, 17);
  554. arg_55D_0.Size = size;
  555. this.tsts.Text = "...";
  556. this.pb.Name = "pb";
  557. ToolStripControlHost arg_598_0 = this.pb;
  558. size = new Size(200, 16);
  559. arg_598_0.Size = size;
  560. this.sts.Dock = DockStyle.Bottom;
  561. this.sts.FormattingEnabled = true;
  562. Control arg_5C9_0 = this.sts;
  563. location = new Point(0, 265);
  564. arg_5C9_0.Location = location;
  565. this.sts.Name = "sts";
  566. Control arg_5F7_0 = this.sts;
  567. size = new Size(376, 264);
  568. arg_5F7_0.Size = size;
  569. this.sts.TabIndex = 3;
  570. Control arg_61C_0 = this.Button1;
  571. location = new Point(5, 189);
  572. arg_61C_0.Location = location;
  573. this.Button1.Name = "Button1";
  574. Control arg_644_0 = this.Button1;
  575. size = new Size(87, 23);
  576. arg_644_0.Size = size;
  577. this.Button1.TabIndex = 4;
  578. this.Button1.Text = "&Create sockets";
  579. this.Button1.UseVisualStyleBackColor = true;
  580. this.CheckBox2.AutoSize = true;
  581. Control arg_695_0 = this.CheckBox2;
  582. location = new Point(285, 193);
  583. arg_695_0.Location = location;
  584. this.CheckBox2.Name = "CheckBox2";
  585. Control arg_6BD_0 = this.CheckBox2;
  586. size = new Size(83, 17);
  587. arg_6BD_0.Size = size;
  588. this.CheckBox2.TabIndex = 6;
  589. this.CheckBox2.Text = "&Start Freeze";
  590. this.CheckBox2.UseVisualStyleBackColor = true;
  591. Control arg_6FF_0 = this.Button2;
  592. location = new Point(98, 189);
  593. arg_6FF_0.Location = location;
  594. this.Button2.Name = "Button2";
  595. Control arg_727_0 = this.Button2;
  596. size = new Size(79, 23);
  597. arg_727_0.Size = size;
  598. this.Button2.TabIndex = 7;
  599. this.Button2.Text = "&Clear sockets";
  600. this.Button2.UseVisualStyleBackColor = true;
  601. this.Timer1.Interval = 1000;
  602. this.Timer2.Interval = 1000;
  603. this.Label2.AutoSize = true;
  604. Control arg_795_0 = this.Label2;
  605. location = new Point(9, 218);
  606. arg_795_0.Location = location;
  607. this.Label2.Name = "Label2";
  608. Control arg_7BD_0 = this.Label2;
  609. size = new Size(69, 13);
  610. arg_7BD_0.Size = size;
  611. this.Label2.TabIndex = 3;
  612. this.Label2.Text = "Freezing time";
  613. Control arg_7F2_0 = this.NumericUpDown2;
  614. location = new Point(8, 238);
  615. arg_7F2_0.Location = location;
  616. NumericUpDown arg_828_0 = this.NumericUpDown2;
  617. decimal num = new decimal(new int[]
  618. {
  619. 300,
  620. 0,
  621. 0,
  622. 0
  623. });
  624. arg_828_0.Maximum = num;
  625. NumericUpDown arg_85B_0 = this.NumericUpDown2;
  626. num = new decimal(new int[]
  627. {
  628. 10,
  629. 0,
  630. 0,
  631. 0
  632. });
  633. arg_85B_0.Minimum = num;
  634. this.NumericUpDown2.Name = "NumericUpDown2";
  635. Control arg_883_0 = this.NumericUpDown2;
  636. size = new Size(57, 20);
  637. arg_883_0.Size = size;
  638. this.NumericUpDown2.TabIndex = 6;
  639. this.NumericUpDown2.TextAlign = HorizontalAlignment.Center;
  640. NumericUpDown arg_8CE_0 = this.NumericUpDown2;
  641. num = new decimal(new int[]
  642. {
  643. 30,
  644. 0,
  645. 0,
  646. 0
  647. });
  648. arg_8CE_0.Value = num;
  649. this.Label4.AutoSize = true;
  650. Control arg_8F4_0 = this.Label4;
  651. location = new Point(71, 241);
  652. arg_8F4_0.Location = location;
  653. this.Label4.Name = "Label4";
  654. Control arg_91C_0 = this.Label4;
  655. size = new Size(47, 13);
  656. arg_91C_0.Size = size;
  657. this.Label4.TabIndex = 8;
  658. this.Label4.Text = "seconds";
  659. this.Label3.AutoSize = true;
  660. Control arg_961_0 = this.Label3;
  661. location = new Point(228, 242);
  662. arg_961_0.Location = location;
  663. this.Label3.Name = "Label3";
  664. Control arg_989_0 = this.Label3;
  665. size = new Size(47, 13);
  666. arg_989_0.Size = size;
  667. this.Label3.TabIndex = 11;
  668. this.Label3.Text = "seconds";
  669. this.Label5.AutoSize = true;
  670. Control arg_9CF_0 = this.Label5;
  671. location = new Point(166, 219);
  672. arg_9CF_0.Location = location;
  673. this.Label5.Name = "Label5";
  674. Control arg_9F7_0 = this.Label5;
  675. size = new Size(68, 13);
  676. arg_9F7_0.Size = size;
  677. this.Label5.TabIndex = 9;
  678. this.Label5.Text = "Standby time";
  679. Control arg_A31_0 = this.NumericUpDown1;
  680. location = new Point(165, 239);
  681. arg_A31_0.Location = location;
  682. NumericUpDown arg_A67_0 = this.NumericUpDown1;
  683. num = new decimal(new int[]
  684. {
  685. 300,
  686. 0,
  687. 0,
  688. 0
  689. });
  690. arg_A67_0.Maximum = num;
  691. NumericUpDown arg_A9A_0 = this.NumericUpDown1;
  692. num = new decimal(new int[]
  693. {
  694. 10,
  695. 0,
  696. 0,
  697. 0
  698. });
  699. arg_A9A_0.Minimum = num;
  700. this.NumericUpDown1.Name = "NumericUpDown1";
  701. Control arg_AC2_0 = this.NumericUpDown1;
  702. size = new Size(57, 20);
  703. arg_AC2_0.Size = size;
  704. this.NumericUpDown1.TabIndex = 10;
  705. this.NumericUpDown1.TextAlign = HorizontalAlignment.Center;
  706. NumericUpDown arg_B0E_0 = this.NumericUpDown1;
  707. num = new decimal(new int[]
  708. {
  709. 25,
  710. 0,
  711. 0,
  712. 0
  713. });
  714. arg_B0E_0.Value = num;
  715. SizeF autoScaleDimensions = new SizeF(6f, 13f);
  716. this.AutoScaleDimensions = autoScaleDimensions;
  717. this.AutoScaleMode = AutoScaleMode.Font;
  718. this.AutoSizeMode = AutoSizeMode.GrowAndShrink;
  719. this.BackColor = Color.White;
  720. size = new Size(376, 551);
  721. this.ClientSize = size;
  722. this.Controls.Add(this.Label3);
  723. this.Controls.Add(this.Label5);
  724. this.Controls.Add(this.NumericUpDown1);
  725. this.Controls.Add(this.Label4);
  726. this.Controls.Add(this.Label2);
  727. this.Controls.Add(this.NumericUpDown2);
  728. this.Controls.Add(this.Button2);
  729. this.Controls.Add(this.CheckBox2);
  730. this.Controls.Add(this.Button1);
  731. this.Controls.Add(this.sts);
  732. this.Controls.Add(this.StatusStrip1);
  733. this.Controls.Add(this.GroupBox2);
  734. this.Controls.Add(this.GroupBox1);
  735. this.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
  736. this.MaximizeBox = false;
  737. this.Name = "Form1";
  738. this.StartPosition = FormStartPosition.CenterScreen;
  739. this.Text = "Max Room Freezer by Max@nimbuzz.com";
  740. this.GroupBox1.ResumeLayout(false);
  741. this.GroupBox1.PerformLayout();
  742. this.GroupBox2.ResumeLayout(false);
  743. this.GroupBox2.PerformLayout();
  744. this.StatusStrip1.ResumeLayout(false);
  745. this.StatusStrip1.PerformLayout();
  746. ((ISupportInitialize)this.NumericUpDown2).EndInit();
  747. ((ISupportInitialize)this.NumericUpDown1).EndInit();
  748. this.ResumeLayout(false);
  749. this.PerformLayout();
  750. }
  751. private void Form1_FormClosing(object sender, FormClosingEventArgs e)
  752. {
  753. int num;
  754. int num3;
  755. try
  756. {
  757. IL_00:
  758. ProjectData.ClearProjectError();
  759. num = 1;
  760. IL_07:
  761. int num2 = 2;
  762. MySettingsProperty.Settings.myid = this.idbox.Text;
  763. IL_1E:
  764. num2 = 3;
  765. MySettingsProperty.Settings.mypw = this.pw.Text;
  766. IL_35:
  767. num2 = 4;
  768. MySettingsProperty.Settings.myroom = this.room.Text;
  769. IL_4C:
  770. num2 = 5;
  771. MySettingsProperty.Settings.Save();
  772. IL_58:
  773. goto IL_BF;
  774. IL_5A:
  775. int arg_5F_0 = num3 + 1;
  776. num3 = 0;
  777. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_5F_0);
  778. IL_80:
  779. goto IL_B4;
  780. num3 = num2;
  781. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  782. IL_92:
  783. goto IL_B4;
  784. }
  785. object arg_94_0;
  786. endfilter(arg_94_0 is Exception & num > 0 & num3 == 0);
  787. IL_B4:
  788. throw ProjectData.CreateProjectError(-2146828237);
  789. IL_BF:
  790. if (num3 != 0)
  791. {
  792. ProjectData.ClearProjectError();
  793. }
  794. }
  795. private void Form1_Load(object sender, EventArgs e)
  796. {
  797. int num;
  798. int num3;
  799. try
  800. {
  801. IL_00:
  802. ProjectData.ClearProjectError();
  803. num = 1;
  804. IL_07:
  805. int num2 = 2;
  806. Control.CheckForIllegalCrossThreadCalls = false;
  807. IL_0F:
  808. num2 = 3;
  809. this.idbox.Text = MySettingsProperty.Settings.myid;
  810. IL_26:
  811. num2 = 4;
  812. this.pw.Text = MySettingsProperty.Settings.mypw;
  813. IL_3D:
  814. num2 = 5;
  815. this.room.Text = MySettingsProperty.Settings.myroom;
  816. IL_54:
  817. goto IL_BB;
  818. IL_56:
  819. int arg_5B_0 = num3 + 1;
  820. num3 = 0;
  821. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_5B_0);
  822. IL_7C:
  823. goto IL_B0;
  824. num3 = num2;
  825. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  826. IL_8E:
  827. goto IL_B0;
  828. }
  829. object arg_90_0;
  830. endfilter(arg_90_0 is Exception & num > 0 & num3 == 0);
  831. IL_B0:
  832. throw ProjectData.CreateProjectError(-2146828237);
  833. IL_BB:
  834. if (num3 != 0)
  835. {
  836. ProjectData.ClearProjectError();
  837. }
  838. }
  839. private void CheckBox1_CheckedChanged(object sender, EventArgs e)
  840. {
  841. int num;
  842. int num4;
  843. try
  844. {
  845. IL_00:
  846. ProjectData.ClearProjectError();
  847. num = 1;
  848. IL_08:
  849. int num2 = 2;
  850. checked
  851. {
  852. switch (this.CheckBox1.Checked)
  853. {
  854. case false:
  855. {
  856. IL_1E4:
  857. num2 = 27;
  858. this.sockets.Clear();
  859. IL_1F3:
  860. num2 = 28;
  861. this.ac = false;
  862. IL_1FE:
  863. num2 = 29;
  864. List<XmppClientConnection>.Enumerator enumerator = this.IdsList.GetEnumerator();
  865. while (enumerator.MoveNext())
  866. {
  867. XmppClientConnection current = enumerator.Current;
  868. IL_219:
  869. num2 = 30;
  870. current.Close();
  871. IL_223:
  872. num2 = 31;
  873. }
  874. ((IDisposable)enumerator).Dispose();
  875. IL_23D:
  876. num2 = 32;
  877. this.IdsList.Clear();
  878. IL_24C:
  879. break;
  880. }
  881. case true:
  882. {
  883. IL_28:
  884. num2 = 6;
  885. if (!(Operators.CompareString(this.idbox.Text, "", false) == 0 | Operators.CompareString(this.pw.Text, "", false) == 0))
  886. {
  887. goto IL_65;
  888. }
  889. IL_60:
  890. break;
  891. IL_65:
  892. num2 = 8;
  893. IL_68:
  894. num2 = 9;
  895. string[] array = this.idbox.Text.Split(new char[]
  896. {
  897. '#'
  898. }, StringSplitOptions.RemoveEmptyEntries);
  899. IL_8E:
  900. num2 = 10;
  901. this.IdsList.Clear();
  902. IL_9D:
  903. num2 = 11;
  904. this.sockets.Clear();
  905. IL_AC:
  906. num2 = 12;
  907. this.sts.Items.Clear();
  908. IL_C0:
  909. num2 = 13;
  910. this.AddItem("Connecting " + Conversions.ToString(array.Length) + " ids.");
  911. IL_E1:
  912. num2 = 14;
  913. int arg_ED_0 = 0;
  914. int num3 = array.Length - 1;
  915. for (int i = arg_ED_0; i <= num3; i++)
  916. {
  917. IL_F3:
  918. num2 = 15;
  919. XmppClientConnection xmppClientConnection = new XmppClientConnection
  920. {
  921. Server = "nimbuzz.com",
  922. ConnectServer = "o.nimbuzz.com",
  923. AutoAgents = false,
  924. AutoPresence = false,
  925. AutoResolveConnectServer = false,
  926. KeepAliveInterval = 60,
  927. KeepAlive = true,
  928. Password = this.pw.Text,
  929. Resource = this.genz(20)
  930. };
  931. IL_163:
  932. num2 = 16;
  933. xmppClientConnection.Username = array[i];
  934. IL_170:
  935. num2 = 17;
  936. xmppClientConnection.Open();
  937. IL_17A:
  938. num2 = 18;
  939. xmppClientConnection.OnLogin += new ObjectHandler(this.OnLogin);
  940. IL_191:
  941. num2 = 19;
  942. xmppClientConnection.OnAuthError += new XmppElementHandler(this.OnFail);
  943. IL_1A8:
  944. num2 = 20;
  945. xmppClientConnection.OnClose += new ObjectHandler(this.OnClose);
  946. IL_1BF:
  947. num2 = 21;
  948. }
  949. IL_1CF:
  950. num2 = 22;
  951. this.ac = true;
  952. IL_1DA:
  953. break;
  954. }
  955. }
  956. IL_1DF:
  957. goto IL_32D;
  958. IL_251:;
  959. }
  960. int arg_258_0 = num4 + 1;
  961. num4 = 0;
  962. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_258_0);
  963. IL_2E9:
  964. goto IL_322;
  965. num4 = num2;
  966. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  967. IL_2FE:
  968. goto IL_322;
  969. }
  970. object arg_300_0;
  971. endfilter(arg_300_0 is Exception & num > 0 & num4 == 0);
  972. IL_322:
  973. throw ProjectData.CreateProjectError(-2146828237);
  974. IL_32D:
  975. if (num4 != 0)
  976. {
  977. ProjectData.ClearProjectError();
  978. }
  979. }
  980. private void AddItem(string itm)
  981. {
  982. int num;
  983. int num3;
  984. try
  985. {
  986. IL_00:
  987. ProjectData.ClearProjectError();
  988. num = 1;
  989. IL_07:
  990. int num2 = 2;
  991. this.sts.Items.Add(itm);
  992. IL_1B:
  993. num2 = 3;
  994. this.sts.SelectedIndex = checked(this.sts.Items.Count - 1);
  995. IL_3A:
  996. goto IL_99;
  997. IL_3C:
  998. int arg_41_0 = num3 + 1;
  999. num3 = 0;
  1000. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_41_0);
  1001. IL_5A:
  1002. goto IL_8E;
  1003. num3 = num2;
  1004. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1005. IL_6C:
  1006. goto IL_8E;
  1007. }
  1008. object arg_6E_0;
  1009. endfilter(arg_6E_0 is Exception & num > 0 & num3 == 0);
  1010. IL_8E:
  1011. throw ProjectData.CreateProjectError(-2146828237);
  1012. IL_99:
  1013. if (num3 != 0)
  1014. {
  1015. ProjectData.ClearProjectError();
  1016. }
  1017. }
  1018. private void OnClose(object s)
  1019. {
  1020. int num;
  1021. int num3;
  1022. try
  1023. {
  1024. IL_00:
  1025. ProjectData.ClearProjectError();
  1026. num = 1;
  1027. IL_07:
  1028. int num2 = 2;
  1029. this.AddItem((s as XmppClientConnection).Username + " - Disconnected.");
  1030. IL_24:
  1031. num2 = 3;
  1032. if (!this.ac)
  1033. {
  1034. goto IL_3B;
  1035. }
  1036. IL_2E:
  1037. num2 = 4;
  1038. (s as XmppClientConnection).Open();
  1039. IL_3B:
  1040. goto IL_A2;
  1041. IL_3D:
  1042. int arg_42_0 = num3 + 1;
  1043. num3 = 0;
  1044. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_42_0);
  1045. IL_63:
  1046. goto IL_97;
  1047. num3 = num2;
  1048. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1049. IL_75:
  1050. goto IL_97;
  1051. }
  1052. object arg_77_0;
  1053. endfilter(arg_77_0 is Exception & num > 0 & num3 == 0);
  1054. IL_97:
  1055. throw ProjectData.CreateProjectError(-2146828237);
  1056. IL_A2:
  1057. if (num3 != 0)
  1058. {
  1059. ProjectData.ClearProjectError();
  1060. }
  1061. }
  1062. private void OnLogin(object s)
  1063. {
  1064. int num;
  1065. int num3;
  1066. try
  1067. {
  1068. IL_00:
  1069. ProjectData.ClearProjectError();
  1070. num = 1;
  1071. IL_07:
  1072. int num2 = 2;
  1073. if (!this.IdsList.Contains(s as XmppClientConnection))
  1074. {
  1075. goto IL_21;
  1076. }
  1077. IL_1C:
  1078. goto IL_C2;
  1079. IL_21:
  1080. num2 = 4;
  1081. IL_23:
  1082. num2 = 5;
  1083. this.IdsList.Add(s as XmppClientConnection);
  1084. IL_36:
  1085. num2 = 6;
  1086. this.AddItem("✔ " + (s as XmppClientConnection).Username);
  1087. IL_53:
  1088. goto IL_C2;
  1089. IL_55:
  1090. int arg_5A_0 = num3 + 1;
  1091. num3 = 0;
  1092. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_5A_0);
  1093. IL_83:
  1094. goto IL_B7;
  1095. num3 = num2;
  1096. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1097. IL_95:
  1098. goto IL_B7;
  1099. }
  1100. object arg_97_0;
  1101. endfilter(arg_97_0 is Exception & num > 0 & num3 == 0);
  1102. IL_B7:
  1103. throw ProjectData.CreateProjectError(-2146828237);
  1104. IL_C2:
  1105. if (num3 != 0)
  1106. {
  1107. ProjectData.ClearProjectError();
  1108. }
  1109. }
  1110. private void OnFail(object s, Element e)
  1111. {
  1112. int num;
  1113. int num3;
  1114. try
  1115. {
  1116. IL_00:
  1117. ProjectData.ClearProjectError();
  1118. num = 1;
  1119. IL_07:
  1120. int num2 = 2;
  1121. this.AddItem("✖ " + (s as XmppClientConnection).Username);
  1122. IL_24:
  1123. num2 = 3;
  1124. this.IdsList.Remove(s as XmppClientConnection);
  1125. IL_38:
  1126. goto IL_97;
  1127. IL_3A:
  1128. int arg_3F_0 = num3 + 1;
  1129. num3 = 0;
  1130. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_3F_0);
  1131. IL_58:
  1132. goto IL_8C;
  1133. num3 = num2;
  1134. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1135. IL_6A:
  1136. goto IL_8C;
  1137. }
  1138. object arg_6C_0;
  1139. endfilter(arg_6C_0 is Exception & num > 0 & num3 == 0);
  1140. IL_8C:
  1141. throw ProjectData.CreateProjectError(-2146828237);
  1142. IL_97:
  1143. if (num3 != 0)
  1144. {
  1145. ProjectData.ClearProjectError();
  1146. }
  1147. }
  1148. public string genz(int len)
  1149. {
  1150. Random random = new Random();
  1151. string text = "abcdefghijklmnopqrstuvwxyz0123456789^!~*$%";
  1152. string text2 = "";
  1153. checked
  1154. {
  1155. while (len > 0)
  1156. {
  1157. text2 += Conversions.ToString(text[random.Next(0, text.Length - 1)]);
  1158. len--;
  1159. }
  1160. return text2;
  1161. }
  1162. }
  1163. public object Addi(string it)
  1164. {
  1165. int num;
  1166. int num3;
  1167. try
  1168. {
  1169. IL_00:
  1170. ProjectData.ClearProjectError();
  1171. num = 1;
  1172. IL_07:
  1173. int num2 = 2;
  1174. this.AddItem(it);
  1175. IL_10:
  1176. goto IL_6B;
  1177. IL_12:
  1178. int arg_17_0 = num3 + 1;
  1179. num3 = 0;
  1180. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_17_0);
  1181. IL_2C:
  1182. goto IL_60;
  1183. num3 = num2;
  1184. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1185. IL_3E:
  1186. goto IL_60;
  1187. }
  1188. object arg_40_0;
  1189. endfilter(arg_40_0 is Exception & num > 0 & num3 == 0);
  1190. IL_60:
  1191. throw ProjectData.CreateProjectError(-2146828237);
  1192. IL_6B:
  1193. object obj;
  1194. object arg_74_0 = obj;
  1195. if (num3 != 0)
  1196. {
  1197. ProjectData.ClearProjectError();
  1198. }
  1199. return arg_74_0;
  1200. }
  1201. private void idbox_TextChanged(object sender, EventArgs e)
  1202. {
  1203. int num;
  1204. int num3;
  1205. try
  1206. {
  1207. IL_00:
  1208. ProjectData.ClearProjectError();
  1209. num = 1;
  1210. IL_07:
  1211. int num2 = 2;
  1212. string[] array = this.idbox.Text.Split(new char[]
  1213. {
  1214. '#'
  1215. }, StringSplitOptions.RemoveEmptyEntries);
  1216. IL_29:
  1217. num2 = 3;
  1218. if (Operators.CompareString(this.idbox.Text, "", false) != 0)
  1219. {
  1220. goto IL_5D;
  1221. }
  1222. IL_45:
  1223. num2 = 4;
  1224. this.GroupBox1.Text = "Flood ids [0]";
  1225. IL_58:
  1226. goto IL_F9;
  1227. IL_5D:
  1228. num2 = 6;
  1229. IL_60:
  1230. num2 = 7;
  1231. this.GroupBox1.Text = "Flood ids [" + Conversions.ToString(array.Length) + "]";
  1232. IL_85:
  1233. goto IL_F9;
  1234. IL_87:
  1235. int arg_8C_0 = num3 + 1;
  1236. num3 = 0;
  1237. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_8C_0);
  1238. IL_B9:
  1239. goto IL_EE;
  1240. num3 = num2;
  1241. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1242. IL_CC:
  1243. goto IL_EE;
  1244. }
  1245. object arg_CE_0;
  1246. endfilter(arg_CE_0 is Exception & num > 0 & num3 == 0);
  1247. IL_EE:
  1248. throw ProjectData.CreateProjectError(-2146828237);
  1249. IL_F9:
  1250. if (num3 != 0)
  1251. {
  1252. ProjectData.ClearProjectError();
  1253. }
  1254. }
  1255. private void Button1_Click(object sender, EventArgs e)
  1256. {
  1257. int num;
  1258. int num3;
  1259. try
  1260. {
  1261. IL_00:
  1262. ProjectData.ClearProjectError();
  1263. num = 1;
  1264. IL_08:
  1265. int num2 = 2;
  1266. if (this.sockets.Count < 1)
  1267. {
  1268. goto IL_195;
  1269. }
  1270. IL_1C:
  1271. num2 = 3;
  1272. DialogResult dialogResult = MessageBox.Show("Sockets list is not empty. It seems you have already create " + Conversions.ToString(this.sockets.Count) + " sockets. Do you want o clear these sockets and create new?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1273. IL_4C:
  1274. num2 = 4;
  1275. if (dialogResult != DialogResult.Yes)
  1276. {
  1277. goto IL_2DC;
  1278. }
  1279. IL_56:
  1280. num2 = 5;
  1281. this.sockets.Clear();
  1282. IL_64:
  1283. num2 = 6;
  1284. this.pb.Value = 0;
  1285. IL_73:
  1286. num2 = 7;
  1287. this.pb.Maximum = this.IdsList.Count;
  1288. IL_8C:
  1289. num2 = 8;
  1290. this.tsts.Text = "Creating sockets...";
  1291. IL_9F:
  1292. num2 = 9;
  1293. List<XmppClientConnection>.Enumerator enumerator = this.IdsList.GetEnumerator();
  1294. while (enumerator.MoveNext())
  1295. {
  1296. XmppClientConnection current = enumerator.Current;
  1297. IL_BD:
  1298. num2 = 10;
  1299. Freezer freezer = new Freezer(current);
  1300. IL_C8:
  1301. num2 = 11;
  1302. freezer.OnReadMsg += new Freezer.OnReadMsgEventHandler(this.OnRwadMyMsg);
  1303. IL_DF:
  1304. num2 = 12;
  1305. freezer.OnReadxl += new Freezer.OnReadxlEventHandler(this.OnRwadMyXml);
  1306. IL_F6:
  1307. num2 = 13;
  1308. freezer.Roomname = this.room.Text;
  1309. IL_10B:
  1310. num2 = 14;
  1311. this.tsts.Text = current.Username + " - Created.";
  1312. IL_12A:
  1313. num2 = 15;
  1314. this.sockets.Add(freezer);
  1315. IL_13A:
  1316. num2 = 16;
  1317. this.pb.Increment(1);
  1318. IL_14A:
  1319. num2 = 17;
  1320. }
  1321. ((IDisposable)enumerator).Dispose();
  1322. IL_167:
  1323. num2 = 18;
  1324. this.tsts.Text = Conversions.ToString(this.IdsList.Count) + " sockets created.";
  1325. IL_190:
  1326. goto IL_3C9;
  1327. IL_195:
  1328. num2 = 21;
  1329. IL_199:
  1330. num2 = 22;
  1331. this.sockets.Clear();
  1332. IL_1A8:
  1333. num2 = 23;
  1334. this.pb.Value = 0;
  1335. IL_1B8:
  1336. num2 = 24;
  1337. this.pb.Maximum = this.IdsList.Count;
  1338. IL_1D2:
  1339. num2 = 25;
  1340. this.tsts.Text = "Creating sockets...";
  1341. IL_1E6:
  1342. num2 = 26;
  1343. List<XmppClientConnection>.Enumerator enumerator2 = this.IdsList.GetEnumerator();
  1344. while (enumerator2.MoveNext())
  1345. {
  1346. XmppClientConnection current2 = enumerator2.Current;
  1347. IL_204:
  1348. num2 = 27;
  1349. Freezer freezer2 = new Freezer(current2);
  1350. IL_210:
  1351. num2 = 28;
  1352. freezer2.OnReadMsg += new Freezer.OnReadMsgEventHandler(this.OnRwadMyMsg);
  1353. IL_228:
  1354. num2 = 29;
  1355. freezer2.OnReadxl += new Freezer.OnReadxlEventHandler(this.OnRwadMyXml);
  1356. IL_240:
  1357. num2 = 30;
  1358. freezer2.Roomname = this.room.Text;
  1359. IL_256:
  1360. num2 = 31;
  1361. this.tsts.Text = current2.Username + " - Created.";
  1362. IL_275:
  1363. num2 = 32;
  1364. this.sockets.Add(freezer2);
  1365. IL_286:
  1366. num2 = 33;
  1367. this.pb.Increment(1);
  1368. IL_296:
  1369. num2 = 34;
  1370. }
  1371. ((IDisposable)enumerator2).Dispose();
  1372. IL_2B3:
  1373. num2 = 35;
  1374. this.tsts.Text = Conversions.ToString(this.IdsList.Count) + " sockets created.";
  1375. IL_2DC:
  1376. goto IL_3C9;
  1377. IL_2E1:
  1378. int arg_2E8_0 = num3 + 1;
  1379. num3 = 0;
  1380. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_2E8_0);
  1381. IL_385:
  1382. goto IL_3BE;
  1383. num3 = num2;
  1384. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1385. IL_39A:
  1386. goto IL_3BE;
  1387. }
  1388. object arg_39C_0;
  1389. endfilter(arg_39C_0 is Exception & num > 0 & num3 == 0);
  1390. IL_3BE:
  1391. throw ProjectData.CreateProjectError(-2146828237);
  1392. IL_3C9:
  1393. if (num3 != 0)
  1394. {
  1395. ProjectData.ClearProjectError();
  1396. }
  1397. }
  1398. private void Button2_Click(object sender, EventArgs e)
  1399. {
  1400. int num;
  1401. int num3;
  1402. try
  1403. {
  1404. IL_00:
  1405. ProjectData.ClearProjectError();
  1406. num = 1;
  1407. IL_07:
  1408. int num2 = 2;
  1409. this.sockets.Clear();
  1410. IL_14:
  1411. goto IL_6F;
  1412. IL_16:
  1413. int arg_1B_0 = num3 + 1;
  1414. num3 = 0;
  1415. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_1B_0);
  1416. IL_30:
  1417. goto IL_64;
  1418. num3 = num2;
  1419. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1420. IL_42:
  1421. goto IL_64;
  1422. }
  1423. object arg_44_0;
  1424. endfilter(arg_44_0 is Exception & num > 0 & num3 == 0);
  1425. IL_64:
  1426. throw ProjectData.CreateProjectError(-2146828237);
  1427. IL_6F:
  1428. if (num3 != 0)
  1429. {
  1430. ProjectData.ClearProjectError();
  1431. }
  1432. }
  1433. private void CheckBox2_CheckedChanged(object sender, EventArgs e)
  1434. {
  1435. int num;
  1436. int num3;
  1437. try
  1438. {
  1439. IL_00:
  1440. ProjectData.ClearProjectError();
  1441. num = 1;
  1442. IL_08:
  1443. int num2 = 2;
  1444. switch (this.CheckBox2.Checked)
  1445. {
  1446. case false:
  1447. {
  1448. IL_CB:
  1449. num2 = 17;
  1450. List<Freezer>.Enumerator enumerator = this.sockets.GetEnumerator();
  1451. while (enumerator.MoveNext())
  1452. {
  1453. Freezer current = enumerator.Current;
  1454. IL_E6:
  1455. num2 = 18;
  1456. current.StopFreeze();
  1457. IL_F1:
  1458. num2 = 19;
  1459. }
  1460. ((IDisposable)enumerator).Dispose();
  1461. IL_10B:
  1462. num2 = 20;
  1463. this.Timer1.Stop();
  1464. IL_11A:
  1465. num2 = 21;
  1466. this.pb.Value = 0;
  1467. IL_12A:
  1468. num2 = 22;
  1469. this.tsts.Text = "Freezer stopped";
  1470. IL_13E:
  1471. num2 = 23;
  1472. this.t2val = 0;
  1473. IL_149:
  1474. num2 = 24;
  1475. this.Timer2.Start();
  1476. IL_158:
  1477. break;
  1478. }
  1479. case true:
  1480. {
  1481. IL_28:
  1482. num2 = 6;
  1483. List<Freezer>.Enumerator enumerator2 = this.sockets.GetEnumerator();
  1484. while (enumerator2.MoveNext())
  1485. {
  1486. Freezer current2 = enumerator2.Current;
  1487. IL_41:
  1488. num2 = 7;
  1489. current2.StartFreeze();
  1490. IL_4B:
  1491. num2 = 8;
  1492. }
  1493. ((IDisposable)enumerator2).Dispose();
  1494. IL_64:
  1495. num2 = 9;
  1496. this.tsts.Text = "Freezer started.";
  1497. IL_78:
  1498. num2 = 10;
  1499. this.timerval = 0;
  1500. IL_83:
  1501. num2 = 11;
  1502. this.pb.Value = 0;
  1503. IL_93:
  1504. num2 = 12;
  1505. this.pb.Maximum = Convert.ToInt32(this.NumericUpDown2.Value);
  1506. IL_B2:
  1507. num2 = 13;
  1508. this.Timer1.Start();
  1509. IL_C1:
  1510. break;
  1511. }
  1512. }
  1513. IL_C6:
  1514. IL_15D:
  1515. goto IL_222;
  1516. IL_162:
  1517. int arg_169_0 = num3 + 1;
  1518. num3 = 0;
  1519. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_169_0);
  1520. IL_1DE:
  1521. goto IL_217;
  1522. num3 = num2;
  1523. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1524. IL_1F3:
  1525. goto IL_217;
  1526. }
  1527. object arg_1F5_0;
  1528. endfilter(arg_1F5_0 is Exception & num > 0 & num3 == 0);
  1529. IL_217:
  1530. throw ProjectData.CreateProjectError(-2146828237);
  1531. IL_222:
  1532. if (num3 != 0)
  1533. {
  1534. ProjectData.ClearProjectError();
  1535. }
  1536. }
  1537. private void tsts_Click(object sender, EventArgs e)
  1538. {
  1539. int num;
  1540. int num3;
  1541. try
  1542. {
  1543. IL_00:
  1544. ProjectData.ClearProjectError();
  1545. num = 1;
  1546. IL_07:
  1547. int num2 = 2;
  1548. MyProject.Forms.Form2.Show();
  1549. IL_18:
  1550. goto IL_73;
  1551. IL_1A:
  1552. int arg_1F_0 = num3 + 1;
  1553. num3 = 0;
  1554. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_1F_0);
  1555. IL_34:
  1556. goto IL_68;
  1557. num3 = num2;
  1558. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1559. IL_46:
  1560. goto IL_68;
  1561. }
  1562. object arg_48_0;
  1563. endfilter(arg_48_0 is Exception & num > 0 & num3 == 0);
  1564. IL_68:
  1565. throw ProjectData.CreateProjectError(-2146828237);
  1566. IL_73:
  1567. if (num3 != 0)
  1568. {
  1569. ProjectData.ClearProjectError();
  1570. }
  1571. }
  1572. private void OnRwadMyXml(object snd, string xml)
  1573. {
  1574. int num;
  1575. int num2;
  1576. try
  1577. {
  1578. IL_00:
  1579. ProjectData.ClearProjectError();
  1580. num = 1;
  1581. IL_07:
  1582. goto IL_5E;
  1583. IL_09:
  1584. int arg_0E_0 = num2 + 1;
  1585. num2 = 0;
  1586. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_0E_0);
  1587. IL_1F:
  1588. goto IL_53;
  1589. int num3;
  1590. num2 = num3;
  1591. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1592. IL_31:
  1593. goto IL_53;
  1594. }
  1595. object arg_33_0;
  1596. endfilter(arg_33_0 is Exception & num > 0 & num2 == 0);
  1597. IL_53:
  1598. throw ProjectData.CreateProjectError(-2146828237);
  1599. IL_5E:
  1600. if (num2 != 0)
  1601. {
  1602. ProjectData.ClearProjectError();
  1603. }
  1604. }
  1605. private void OnRwadMyMsg(object snd, string mssg)
  1606. {
  1607. int num;
  1608. int num3;
  1609. try
  1610. {
  1611. IL_00:
  1612. ProjectData.ClearProjectError();
  1613. num = 1;
  1614. IL_07:
  1615. int num2 = 2;
  1616. MyProject.Forms.Form2.RichTextBox1.AppendText((snd as Freezer).Socket.Username + ": " + mssg);
  1617. IL_38:
  1618. goto IL_93;
  1619. IL_3A:
  1620. int arg_3F_0 = num3 + 1;
  1621. num3 = 0;
  1622. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_3F_0);
  1623. IL_54:
  1624. goto IL_88;
  1625. num3 = num2;
  1626. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1627. IL_66:
  1628. goto IL_88;
  1629. }
  1630. object arg_68_0;
  1631. endfilter(arg_68_0 is Exception & num > 0 & num3 == 0);
  1632. IL_88:
  1633. throw ProjectData.CreateProjectError(-2146828237);
  1634. IL_93:
  1635. if (num3 != 0)
  1636. {
  1637. ProjectData.ClearProjectError();
  1638. }
  1639. }
  1640. private void Timer1_Tick(object sender, EventArgs e)
  1641. {
  1642. int num;
  1643. int num3;
  1644. try
  1645. {
  1646. IL_00:
  1647. ProjectData.ClearProjectError();
  1648. num = 1;
  1649. IL_07:
  1650. int num2 = 2;
  1651. this.pb.Maximum = Convert.ToInt32(this.NumericUpDown2.Value);
  1652. IL_24:
  1653. num2 = 3;
  1654. checked
  1655. {
  1656. this.timerval++;
  1657. IL_34:
  1658. num2 = 4;
  1659. this.pb.Increment(1);
  1660. IL_42:
  1661. num2 = 5;
  1662. if (decimal.Compare(new decimal(this.timerval), this.NumericUpDown2.Value) != 0)
  1663. {
  1664. goto IL_95;
  1665. }
  1666. IL_62:
  1667. num2 = 6;
  1668. this.Timer1.Stop();
  1669. IL_6F:
  1670. num2 = 7;
  1671. this.CheckBox2.Checked = false;
  1672. IL_7D:
  1673. num2 = 8;
  1674. this.timerval = 0;
  1675. IL_86:
  1676. num2 = 9;
  1677. this.pb.Value = 0;
  1678. IL_95:
  1679. goto IL_110;
  1680. IL_97:;
  1681. }
  1682. int arg_9C_0 = num3 + 1;
  1683. num3 = 0;
  1684. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_9C_0);
  1685. IL_D1:
  1686. goto IL_105;
  1687. num3 = num2;
  1688. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1689. IL_E3:
  1690. goto IL_105;
  1691. }
  1692. object arg_E5_0;
  1693. endfilter(arg_E5_0 is Exception & num > 0 & num3 == 0);
  1694. IL_105:
  1695. throw ProjectData.CreateProjectError(-2146828237);
  1696. IL_110:
  1697. if (num3 != 0)
  1698. {
  1699. ProjectData.ClearProjectError();
  1700. }
  1701. }
  1702. private void Timer2_Tick(object sender, EventArgs e)
  1703. {
  1704. int num;
  1705. int num3;
  1706. try
  1707. {
  1708. IL_00:
  1709. ProjectData.ClearProjectError();
  1710. num = 1;
  1711. IL_07:
  1712. int num2 = 2;
  1713. this.pb.Maximum = Convert.ToInt32(this.NumericUpDown1.Value);
  1714. IL_24:
  1715. num2 = 3;
  1716. this.pb.Increment(1);
  1717. IL_32:
  1718. num2 = 4;
  1719. checked
  1720. {
  1721. this.t2val++;
  1722. IL_42:
  1723. num2 = 5;
  1724. if (decimal.Compare(new decimal(this.t2val), this.NumericUpDown1.Value) != 0)
  1725. {
  1726. goto IL_95;
  1727. }
  1728. IL_62:
  1729. num2 = 6;
  1730. this.Timer2.Stop();
  1731. IL_6F:
  1732. num2 = 7;
  1733. this.t2val = 0;
  1734. IL_78:
  1735. num2 = 8;
  1736. this.pb.Value = 0;
  1737. IL_86:
  1738. num2 = 9;
  1739. this.CheckBox2.Checked = true;
  1740. IL_95:
  1741. goto IL_110;
  1742. IL_97:;
  1743. }
  1744. int arg_9C_0 = num3 + 1;
  1745. num3 = 0;
  1746. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], arg_9C_0);
  1747. IL_D1:
  1748. goto IL_105;
  1749. num3 = num2;
  1750. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  1751. IL_E3:
  1752. goto IL_105;
  1753. }
  1754. object arg_E5_0;
  1755. endfilter(arg_E5_0 is Exception & num > 0 & num3 == 0);
  1756. IL_105:
  1757. throw ProjectData.CreateProjectError(-2146828237);
  1758. IL_110:
  1759. if (num3 != 0)
  1760. {
  1761. ProjectData.ClearProjectError();
  1762. }
  1763. }
  1764. }
  1765. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement