888
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using _0002;
using _0003;
using _0004;
using SmartAssembly.Delegates;
using SmartAssembly.HouseOfCards;
using SpotApp.Helpers;
using SpotApp.Services;
namespace SpotApp;
internal class LoginForm : Form
{
private IContainer m__0001 = null;
private Label m__0001;
private Button m__0001;
private TextBox m__0001;
private Label m__0002;
private TextBox m__0002;
private PictureBox m__0001;
[NonSerialized]
internal static GetString _0015;
private bool _0001()
{
string value = ((Control)this.m__0001).Text.Trim();
if (string.IsNullOrEmpty(value))
{
return false;
}
string value2 = ((Control)this.m__0002).Text.Trim();
if (string.IsNullOrEmpty(value2))
{
return false;
}
return true;
}
public LoginForm()
{
_0001();
}
private void _0001(object _0002, EventArgs _0003)
{
//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
//IL_00b1: Invalid comparison between Unknown and I4
//IL_0125: Unknown result type (might be due to invalid IL or missing references)
try
{
((Control)this).Enabled = false;
((Control)this).Cursor = Cursors.WaitCursor;
SpotService spotService = new SpotService();
global::_0002._0005 obj = spotService._0001(((Control)this.m__0001).Text, ((Control)this.m__0002).Text);
if (obj.Version == _0015(239))
{
((Control)new global::_0003._0002(obj)).Show();
((Control)this).Hide();
}
else
{
if ((int)MessageBox.Show(_0015(625) + obj.Version + _0015(750), _0015(767), (MessageBoxButtons)1) != 1)
{
return;
}
if (spotService._0001(out var fileName))
{
Process.Start(fileName);
UIHelper._0001((Form)(object)this, delegate
{
Application.Exit();
}, 1000);
}
else
{
MessageBox.Show(_0015(792), _0015(767));
((Control)new global::_0003._0002(obj)).Show();
((Control)this).Hide();
}
}
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
finally
{
((Control)this).Enabled = true;
((Control)this).Cursor = Cursors.Default;
}
}
private void _0002(object _0002, EventArgs _0003)
{
((Control)this.m__0001).Focus();
}
private void _0001(object _0002, KeyPressEventArgs _0003)
{
//IL_004a: Unknown result type (might be due to invalid IL or missing references)
if (_0003.KeyChar == '\r')
{
string value = ((Control)this.m__0001).Text.Trim();
if (string.IsNullOrEmpty(value))
{
MessageBox.Show(_0015(926), _0015(767));
}
else
{
((Control)this.m__0002).Focus();
}
}
}
private void _0002(object _0002, KeyPressEventArgs _0003)
{
//IL_004a: Unknown result type (might be due to invalid IL or missing references)
if (_0003.KeyChar == '\r')
{
string value = ((Control)this.m__0001).Text.Trim();
if (string.IsNullOrEmpty(value))
{
MessageBox.Show(_0015(995), _0015(767));
}
else
{
((Control)this.m__0001).Focus();
}
}
}
private void _0003(object _0002, EventArgs _0003)
{
((Control)this.m__0001).Enabled = _0001();
}
private void _0004(object _0002, EventArgs _0003)
{
((Control)this.m__0001).Enabled = _0001();
}
protected override void _0001(bool _0002)
{
if (_0002 && this.m__0001 != null)
{
this.m__0001.Dispose();
}
((Form)this).Dispose(_0002);
}
private void _0001()
{
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Expected O, but got Unknown
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0027: Expected O, but got Unknown
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
//IL_0032: Expected O, but got Unknown
//IL_0033: Unknown result type (might be due to invalid IL or missing references)
//IL_003d: Expected O, but got Unknown
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0048: Expected O, but got Unknown
//IL_0049: Unknown result type (might be due to invalid IL or missing references)
//IL_0053: Expected O, but got Unknown
//IL_0092: Unknown result type (might be due to invalid IL or missing references)
//IL_0123: Unknown result type (might be due to invalid IL or missing references)
//IL_012d: Expected O, but got Unknown
//IL_014d: Unknown result type (might be due to invalid IL or missing references)
//IL_01f4: Unknown result type (might be due to invalid IL or missing references)
//IL_0264: Unknown result type (might be due to invalid IL or missing references)
//IL_026e: Expected O, but got Unknown
//IL_029b: Unknown result type (might be due to invalid IL or missing references)
//IL_031d: Unknown result type (might be due to invalid IL or missing references)
//IL_039b: Unknown result type (might be due to invalid IL or missing references)
//IL_03a5: Expected O, but got Unknown
//IL_03fd: Unknown result type (might be due to invalid IL or missing references)
//IL_053c: Unknown result type (might be due to invalid IL or missing references)
//IL_0546: Expected O, but got Unknown
//IL_0569: Unknown result type (might be due to invalid IL or missing references)
//IL_0573: Expected O, but got Unknown
//IL_0579: Unknown result type (might be due to invalid IL or missing references)
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(LoginForm));
this.m__0001 = new Label();
this.m__0001 = new Button();
this.m__0001 = new TextBox();
this.m__0002 = new Label();
this.m__0002 = new TextBox();
this.m__0001 = new PictureBox();
((ISupportInitialize)this.m__0001).BeginInit();
((Control)this).SuspendLayout();
((Control)this.m__0001).AutoSize = true;
((Control)this.m__0001).Location = new Point(41, 33);
((Control)this.m__0001).Margin = new Padding(2, 0, 2, 0);
((Control)this.m__0001).Name = _0015(1040);
((Control)this.m__0001).Size = new Size(92, 15);
((Control)this.m__0001).TabIndex = 1;
((Control)this.m__0001).Text = _0015(1049);
((Control)this.m__0001).Enabled = false;
((Control)this.m__0001).Font = new Font(_0015(521), 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204);
((Control)this.m__0001).Location = new Point(145, 104);
((Control)this.m__0001).Margin = new Padding(2);
((Control)this.m__0001).Name = _0015(1082);
((Control)this.m__0001).Size = new Size(100, 25);
((Control)this.m__0001).TabIndex = 2;
((Control)this.m__0001).Text = _0015(1095);
((ButtonBase)this.m__0001).UseVisualStyleBackColor = true;
((Control)this.m__0001).Click += _0001;
((Control)this.m__0001).Location = new Point(145, 33);
((Control)this.m__0001).Margin = new Padding(2);
((Control)this.m__0001).Name = _0015(1112);
((Control)this.m__0001).Size = new Size(193, 21);
((Control)this.m__0001).TabIndex = 0;
((Control)this.m__0001).TextChanged += _0003;
((Control)this.m__0001).KeyPress += new KeyPressEventHandler(_0001);
((Control)this.m__0002).AutoSize = true;
((Control)this.m__0002).Location = new Point(82, 70);
((Control)this.m__0002).Margin = new Padding(2, 0, 2, 0);
((Control)this.m__0002).Name = _0015(1125);
((Control)this.m__0002).Size = new Size(51, 15);
((Control)this.m__0002).TabIndex = 4;
((Control)this.m__0002).Text = _0015(1134);
((Control)this.m__0002).Location = new Point(145, 70);
((Control)this.m__0002).Margin = new Padding(2);
((Control)this.m__0002).Name = _0015(1151);
this.m__0002.PasswordChar = '*';
((Control)this.m__0002).Size = new Size(193, 21);
((Control)this.m__0002).TabIndex = 1;
((Control)this.m__0002).TextChanged += _0004;
((Control)this.m__0002).KeyPress += new KeyPressEventHandler(_0002);
((Control)this.m__0001).Anchor = (AnchorStyles)6;
((Control)this.m__0001).BackColor = Color.Red;
((Control)this.m__0001).Enabled = false;
this.m__0001.Image = (Image)(object)global::_0004._0001.test;
((Control)this.m__0001).Location = new Point(-1, 123);
((Control)this.m__0001).Margin = new Padding(0);
((Control)this.m__0001).Name = _0015(1168);
((Control)this.m__0001).Size = new Size(56, 39);
this.m__0001.SizeMode = (PictureBoxSizeMode)1;
this.m__0001.TabIndex = 6;
this.m__0001.TabStop = false;
((Control)this.m__0001).Visible = false;
((ContainerControl)this).AutoScaleDimensions = new SizeF(7f, 15f);
((ContainerControl)this).AutoScaleMode = (AutoScaleMode)1;
((Control)this).BackColor = SystemColors.Control;
((Form)this).ClientSize = new Size(384, 161);
((Control)this).Controls.Add((Control)(object)this.m__0001);
((Control)this).Controls.Add((Control)(object)this.m__0002);
((Control)this).Controls.Add((Control)(object)this.m__0002);
((Control)this).Controls.Add((Control)(object)this.m__0001);
((Control)this).Controls.Add((Control)(object)this.m__0001);
((Control)this).Controls.Add((Control)(object)this.m__0001);
((Control)this).DoubleBuffered = true;
((Control)this).Font = new Font(_0015(521), 9f, (FontStyle)0, (GraphicsUnit)3, (byte)204);
((Control)this).ForeColor = SystemColors.ControlText;
((Form)this).Icon = (Icon)componentResourceManager.GetObject(_0015(550));
((Form)this).Margin = new Padding(4, 3, 4, 3);
((Control)this).MinimumSize = new Size(400, 200);
((Control)this).Name = _0015(1185);
((Form)this).SizeGripStyle = (SizeGripStyle)1;
((Form)this).StartPosition = (FormStartPosition)1;
((Control)this).Text = _0015(1198);
((Form)this).Load += _0002;
((ISupportInitialize)this.m__0001).EndInit();
((Control)this).ResumeLayout(false);
((Control)this).PerformLayout();
}
static LoginForm()
{
Strings.CreateGetStringDelegate(typeof(LoginForm));
}
}