Advertisement
Guest User

s0l

a guest
Dec 10th, 2009
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 6.94 KB | None | 0 0
  1. using System;
  2. using System.ComponentModel;
  3. using System.Drawing;
  4. using System.Windows.Forms;
  5. using Microsoft.Win32;
  6.  
  7. namespace Namespace_1
  8. {
  9.  
  10.     public class Class_13_Form : Form
  11.     {
  12.  
  13.         private IContainer Field_0;
  14.         private TextBox Field_1;
  15.         private TextBox Field_2;
  16.         private Label Field_3;
  17.         private Label Field_4;
  18.         private Button Field_5;
  19.         private Button Field_6;
  20.         private Label Field_7;
  21.         private Label Field_8;
  22.  
  23.         public Class_13_Form()
  24.         {
  25.             Procedure_2();
  26.         }
  27.  
  28.         private void Procedure_2()
  29.         {
  30.             if (!0)
  31.             {
  32.             }
  33.             Field_1 = new TextBox();
  34.             Field_2 = new TextBox();
  35.             Field_3 = new Label();
  36.             Field_4 = new Label();
  37.             Field_5 = new Button();
  38.             Field_6 = new Button();
  39.             Field_7 = new Label();
  40.             Field_8 = new Label();
  41.             SuspendLayout();
  42.             Field_1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
  43.             Field_1.Location = new Point(86, 51);
  44.             Field_1.Name = "txtID";
  45.             Field_1.ReadOnly = true;
  46.             Field_1.Size = new Size(224, 20);
  47.             Field_1.TabIndex = 0;
  48.             Field_2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
  49.             Field_2.Location = new Point(86, 80);
  50.             Field_2.Name = "txtSerial";
  51.             Field_2.Size = new Size(224, 20);
  52.             Field_2.TabIndex = 1;
  53.             Field_3.AutoSize = true;
  54.             Field_3.Location = new Point(18, 54);
  55.             Field_3.Name = "label1";
  56.             Field_3.Size = new Size(62, 13);
  57.             Field_3.TabIndex = 2;
  58.             Field_3.Text = "Machine ID";
  59.             Field_4.AutoSize = true;
  60.             Field_4.Location = new Point(47, 83);
  61.             Field_4.Name = "label2";
  62.             Field_4.Size = new Size(33, 13);
  63.             Field_4.TabIndex = 3;
  64.             Field_4.Text = "Serial";
  65.             Field_5.Anchor = AnchorStyles.Top | AnchorStyles.Right;
  66.             Field_5.Location = new Point(316, 49);
  67.             Field_5.Name = "btGetID";
  68.             Field_5.Size = new Size(75, 23);
  69.             Field_5.TabIndex = 4;
  70.             Field_5.Text = "\u0412\u044B\u0447\u0438\u0441\u043B\u0438\u0442\u044C";
  71.             Field_5.UseVisualStyleBackColor = true;
  72.             Field_5.Click += new EventHandler(Procedure_3);
  73.             Field_6.Location = new Point(316, 78);
  74.             Field_6.Name = "btOK";
  75.             Field_6.Size = new Size(75, 23);
  76.             Field_6.TabIndex = 6;
  77.             Field_6.Text = "OK";
  78.             Field_6.UseVisualStyleBackColor = true;
  79.             Field_6.Click += new EventHandler(Procedure_4);
  80.             Field_7.AutoSize = true;
  81.             Field_7.Location = new Point(12, 9);
  82.             Field_7.Name = "label3";
  83.             Field_7.Size = new Size(295, 13);
  84.             Field_7.TabIndex = 7;
  85.             Field_7.Text = "\u0414\u043B\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0441 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043E\u0439 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0435\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C";
  86.             Field_8.AutoSize = true;
  87.             Field_8.Location = new Point(12, 22);
  88.             Field_8.Name = "label4";
  89.             Field_8.Size = new Size(377, 13);
  90.             Field_8.TabIndex = 8;
  91.             Field_8.Text = "\u0414\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043F\u043E\u0441\u043B\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E \u0430\u0434\u0440\u0435\u0441\u0443";
  92.             AutoScaleDimensions = new SizeF(6.0F, 13.0F);
  93.             AutoScaleMode = AutoScaleMode.Font;
  94.             ClientSize = new Size(403, 113);
  95.             Controls.Add(Field_8);
  96.             Controls.Add(Field_7);
  97.             Controls.Add(Field_6);
  98.             Controls.Add(Field_5);
  99.             Controls.Add(Field_4);
  100.             Controls.Add(Field_3);
  101.             Controls.Add(Field_2);
  102.             Controls.Add(Field_1);
  103.             Name = "RegistrationForm";
  104.             Text = "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F";
  105.             ResumeLayout(false);
  106.             PerformLayout();
  107.         }
  108.  
  109.         private void Procedure_3(object A_0, EventArgs A_1)
  110.         {
  111.             uint ui = Class_3_Form.Function_UInt32_59();
  112.             if ((int)ui != 0)
  113.             {
  114.                 Field_1.Text = ui.ToString();
  115.                 return;
  116.             }
  117.             if (!0)
  118.             {
  119.             }
  120.             MessageBox.Show("\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u044F.\r\n\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0443 \u0441 \u043F\u0440\u0438\u0432\u0435\u043B\u0435\u0433\u0438\u044F\u043C\u0438 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u0430.");
  121.         }
  122.  
  123.         private void Procedure_4(object A_0, EventArgs A_1)
  124.         {
  125.             Class_16_Object class_16_Object = Class_3_Form.Function_Class_16_60(Field_2.Text.Trim());
  126.             if (class_16_Object.Field_0)
  127.             {
  128.                 Registry.CurrentUser.CreateSubKey("Software\\ViKing").SetValue("Key", Field_2.Text, RegistryValueKind.String);
  129.                 MessageBox.Show("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0443\u0441\u043F\u0435\u0448\u043D\u0430, \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0443");
  130.                 Close();
  131.                 return;
  132.             }
  133.             if (!0)
  134.             {
  135.             }
  136.             MessageBox.Show(class_16_Object.Field_1, "\u041E\u0448\u0438\u0431\u043A\u0430");
  137.         }
  138.  
  139.         protected override void Dispose(bool disposing)
  140.         {
  141.             int i = 1;
  142.             goto label_1;
  143.             while (true)
  144.             {
  145.             label_1:
  146.                 switch (i)(label_0,label_0,label_0,label_0,label_0);
  147.                 if (false && !disposing)
  148.                     goto label_2;
  149.                 i = 4;
  150.             }
  151.             while (true)
  152.             {
  153.                 Field_0.Dispose();
  154.                 i = 2;
  155.                 goto label_1;
  156.                 break;
  157.                 i = 0;
  158.                 goto label_1;
  159.                 if (Field_0 != null)
  160.                 {
  161.                     i = 3;
  162.                     goto label_1;
  163.                 }
  164.             }
  165.         label_2:
  166.             base.Dispose(disposing);
  167.             // decompiling complete with errors
  168.         }
  169.  
  170.     } // class Class_13_Form
  171.  
  172. }
  173.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement