Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel;
- using System.Drawing;
- using System.Windows.Forms;
- using Microsoft.Win32;
- namespace Namespace_1
- {
- public class Class_13_Form : Form
- {
- private IContainer Field_0;
- private TextBox Field_1;
- private TextBox Field_2;
- private Label Field_3;
- private Label Field_4;
- private Button Field_5;
- private Button Field_6;
- private Label Field_7;
- private Label Field_8;
- public Class_13_Form()
- {
- Procedure_2();
- }
- private void Procedure_2()
- {
- if (!0)
- {
- }
- Field_1 = new TextBox();
- Field_2 = new TextBox();
- Field_3 = new Label();
- Field_4 = new Label();
- Field_5 = new Button();
- Field_6 = new Button();
- Field_7 = new Label();
- Field_8 = new Label();
- SuspendLayout();
- Field_1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
- Field_1.Location = new Point(86, 51);
- Field_1.Name = "txtID";
- Field_1.ReadOnly = true;
- Field_1.Size = new Size(224, 20);
- Field_1.TabIndex = 0;
- Field_2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
- Field_2.Location = new Point(86, 80);
- Field_2.Name = "txtSerial";
- Field_2.Size = new Size(224, 20);
- Field_2.TabIndex = 1;
- Field_3.AutoSize = true;
- Field_3.Location = new Point(18, 54);
- Field_3.Name = "label1";
- Field_3.Size = new Size(62, 13);
- Field_3.TabIndex = 2;
- Field_3.Text = "Machine ID";
- Field_4.AutoSize = true;
- Field_4.Location = new Point(47, 83);
- Field_4.Name = "label2";
- Field_4.Size = new Size(33, 13);
- Field_4.TabIndex = 3;
- Field_4.Text = "Serial";
- Field_5.Anchor = AnchorStyles.Top | AnchorStyles.Right;
- Field_5.Location = new Point(316, 49);
- Field_5.Name = "btGetID";
- Field_5.Size = new Size(75, 23);
- Field_5.TabIndex = 4;
- Field_5.Text = "\u0412\u044B\u0447\u0438\u0441\u043B\u0438\u0442\u044C";
- Field_5.UseVisualStyleBackColor = true;
- Field_5.Click += new EventHandler(Procedure_3);
- Field_6.Location = new Point(316, 78);
- Field_6.Name = "btOK";
- Field_6.Size = new Size(75, 23);
- Field_6.TabIndex = 6;
- Field_6.Text = "OK";
- Field_6.UseVisualStyleBackColor = true;
- Field_6.Click += new EventHandler(Procedure_4);
- Field_7.AutoSize = true;
- Field_7.Location = new Point(12, 9);
- Field_7.Name = "label3";
- Field_7.Size = new Size(295, 13);
- Field_7.TabIndex = 7;
- 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";
- Field_8.AutoSize = true;
- Field_8.Location = new Point(12, 22);
- Field_8.Name = "label4";
- Field_8.Size = new Size(377, 13);
- Field_8.TabIndex = 8;
- 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";
- AutoScaleDimensions = new SizeF(6.0F, 13.0F);
- AutoScaleMode = AutoScaleMode.Font;
- ClientSize = new Size(403, 113);
- Controls.Add(Field_8);
- Controls.Add(Field_7);
- Controls.Add(Field_6);
- Controls.Add(Field_5);
- Controls.Add(Field_4);
- Controls.Add(Field_3);
- Controls.Add(Field_2);
- Controls.Add(Field_1);
- Name = "RegistrationForm";
- Text = "\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F";
- ResumeLayout(false);
- PerformLayout();
- }
- private void Procedure_3(object A_0, EventArgs A_1)
- {
- uint ui = Class_3_Form.Function_UInt32_59();
- if ((int)ui != 0)
- {
- Field_1.Text = ui.ToString();
- return;
- }
- if (!0)
- {
- }
- 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.");
- }
- private void Procedure_4(object A_0, EventArgs A_1)
- {
- Class_16_Object class_16_Object = Class_3_Form.Function_Class_16_60(Field_2.Text.Trim());
- if (class_16_Object.Field_0)
- {
- Registry.CurrentUser.CreateSubKey("Software\\ViKing").SetValue("Key", Field_2.Text, RegistryValueKind.String);
- 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");
- Close();
- return;
- }
- if (!0)
- {
- }
- MessageBox.Show(class_16_Object.Field_1, "\u041E\u0448\u0438\u0431\u043A\u0430");
- }
- protected override void Dispose(bool disposing)
- {
- int i = 1;
- goto label_1;
- while (true)
- {
- label_1:
- switch (i)(label_0,label_0,label_0,label_0,label_0);
- if (false && !disposing)
- goto label_2;
- i = 4;
- }
- while (true)
- {
- Field_0.Dispose();
- i = 2;
- goto label_1;
- break;
- i = 0;
- goto label_1;
- if (Field_0 != null)
- {
- i = 3;
- goto label_1;
- }
- }
- label_2:
- base.Dispose(disposing);
- // decompiling complete with errors
- }
- } // class Class_13_Form
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement