118 lines
4.0 KiB
C#
118 lines
4.0 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Raton.Forms.ClientForms.Dialogs.loginClient
|
|
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
|
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
|
|
|
using DarkModeForms;
|
|
using Raton.Classes;
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
#nullable disable
|
|
namespace Raton.Forms.ClientForms.Dialogs;
|
|
|
|
public class loginClient : Form
|
|
{
|
|
private IContainer components;
|
|
private Button btnLog;
|
|
private TextBox txtPass;
|
|
private Label label3;
|
|
private Button button1;
|
|
|
|
public string Password { get; set; }
|
|
|
|
public string SillyClient { get; set; }
|
|
|
|
public loginClient()
|
|
{
|
|
this.InitializeComponent();
|
|
DarkMode.Start((Form) this);
|
|
}
|
|
|
|
private void loginClient_Load(object sender, EventArgs e)
|
|
{
|
|
this.Text = "Login to " + this.SillyClient;
|
|
}
|
|
|
|
private void btnLog_Click(object sender, EventArgs e)
|
|
{
|
|
if (this.txtPass.Text == this.Password)
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
else
|
|
{
|
|
int num = (int) Messenger.MessageBox("Invalid password", "Auth", icon: MessageBoxIcon.Hand);
|
|
this.txtPass.Clear();
|
|
}
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e) => this.Close();
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && this.components != null)
|
|
this.components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (loginClient));
|
|
this.btnLog = new Button();
|
|
this.txtPass = new TextBox();
|
|
this.label3 = new Label();
|
|
this.button1 = new Button();
|
|
this.SuspendLayout();
|
|
this.btnLog.Location = new Point(12, 70);
|
|
this.btnLog.Name = "btnLog";
|
|
this.btnLog.Size = new Size(285, 38);
|
|
this.btnLog.TabIndex = 1;
|
|
this.btnLog.Text = "Log in";
|
|
this.btnLog.UseVisualStyleBackColor = true;
|
|
this.btnLog.Click += new EventHandler(this.btnLog_Click);
|
|
this.txtPass.Font = new Font("Microsoft JhengHei", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.txtPass.Location = new Point(12, 39);
|
|
this.txtPass.Name = "txtPass";
|
|
this.txtPass.Size = new Size(285, 25);
|
|
this.txtPass.TabIndex = 2;
|
|
this.txtPass.UseSystemPasswordChar = true;
|
|
this.label3.AutoSize = true;
|
|
this.label3.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.label3.Location = new Point(9, 20);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new Size(133, 16 /*0x10*/);
|
|
this.label3.TabIndex = 5;
|
|
this.label3.Text = "Password of the client:";
|
|
this.button1.Location = new Point(12, 114);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new Size(285, 38);
|
|
this.button1.TabIndex = 6;
|
|
this.button1.Text = "Cancel";
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
this.button1.Click += new EventHandler(this.button1_Click);
|
|
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
|
this.AutoScaleMode = AutoScaleMode.Font;
|
|
this.ClientSize = new Size(312, 174);
|
|
this.ControlBox = false;
|
|
this.Controls.Add((Control) this.button1);
|
|
this.Controls.Add((Control) this.txtPass);
|
|
this.Controls.Add((Control) this.btnLog);
|
|
this.Controls.Add((Control) this.label3);
|
|
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
|
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
|
this.MaximizeBox = false;
|
|
this.Name = nameof (loginClient);
|
|
this.StartPosition = FormStartPosition.CenterScreen;
|
|
this.Text = "Login to ";
|
|
this.Load += new EventHandler(this.loginClient_Load);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
}
|