199 lines
7.2 KiB
C#
199 lines
7.2 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Raton.Forms.ClientForms.Misc.ratonMessageBox
|
|
// 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 Raton.Properties;
|
|
using Server.Connection;
|
|
using Stuff;
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
#nullable disable
|
|
namespace Raton.Forms.ClientForms.Misc;
|
|
|
|
public class ratonMessageBox : Form
|
|
{
|
|
private IContainer components;
|
|
private FlatComboBox flatComboBox1;
|
|
private FlatComboBox flatComboBox2;
|
|
private Label label1;
|
|
private Label label2;
|
|
private TextBox textBox1;
|
|
private TextBox textBox2;
|
|
private Label label3;
|
|
private Label label4;
|
|
private Timer timer1;
|
|
private RgbBuildButton rgbBuildButton1;
|
|
|
|
public SillyClient SillyClient { get; set; }
|
|
|
|
public ratonMessageBox()
|
|
{
|
|
this.InitializeComponent();
|
|
this.timer1.Start();
|
|
DarkMode.Start((Form) this);
|
|
this.flatComboBox2.Items.Clear();
|
|
this.flatComboBox1.Items.Clear();
|
|
this.flatComboBox2.Items.AddRange((object[]) new string[3]
|
|
{
|
|
"Error",
|
|
"Warning",
|
|
"Information"
|
|
});
|
|
this.flatComboBox2.SelectedIndex = 0;
|
|
this.flatComboBox1.Items.AddRange((object[]) new string[6]
|
|
{
|
|
"OK",
|
|
"OK, Cancel",
|
|
"Yes, No",
|
|
"Yes, No, Cancel",
|
|
"Retry, Cancel",
|
|
"Abort, Retry, Ignore"
|
|
});
|
|
this.flatComboBox1.SelectedIndex = 0;
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
if (this.textBox1.TextLength < 1)
|
|
{
|
|
int num1 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
|
}
|
|
else if (this.textBox2.TextLength < 1)
|
|
{
|
|
int num2 = (int) Messenger.MessageBox("Please insert some text", "Error", icon: MessageBoxIcon.Hand);
|
|
}
|
|
else
|
|
{
|
|
Pack pack = new Pack();
|
|
pack.SetString("Packet", "MsgBox");
|
|
pack.SetString("Icon", (string) this.flatComboBox2.SelectedItem);
|
|
pack.SetString("Options", (string) this.flatComboBox1.SelectedItem);
|
|
pack.SetString("Title", this.textBox1.Text.ToString());
|
|
pack.SetString("Message", this.textBox2.Text.ToString());
|
|
this.SillyClient.Send(pack.Pacc());
|
|
int num3 = (int) Messenger.MessageBox("Message box sent", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, true);
|
|
}
|
|
}
|
|
|
|
private void ratonMessageBox_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
private void timer1_Tick(object sender, EventArgs e)
|
|
{
|
|
if (this.SillyClient != null && this.SillyClient.isConnected())
|
|
return;
|
|
this.Close();
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && this.components != null)
|
|
this.components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = (IContainer) new System.ComponentModel.Container();
|
|
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonMessageBox));
|
|
this.flatComboBox1 = new FlatComboBox();
|
|
this.flatComboBox2 = new FlatComboBox();
|
|
this.label1 = new Label();
|
|
this.label2 = new Label();
|
|
this.textBox1 = new TextBox();
|
|
this.textBox2 = new TextBox();
|
|
this.label3 = new Label();
|
|
this.label4 = new Label();
|
|
this.timer1 = new Timer(this.components);
|
|
this.rgbBuildButton1 = new RgbBuildButton();
|
|
this.SuspendLayout();
|
|
this.flatComboBox1.FormattingEnabled = true;
|
|
this.flatComboBox1.Location = new Point(13, 433);
|
|
this.flatComboBox1.Name = "flatComboBox1";
|
|
this.flatComboBox1.Size = new Size(566, 23);
|
|
this.flatComboBox1.TabIndex = 0;
|
|
this.flatComboBox2.FormattingEnabled = true;
|
|
this.flatComboBox2.Location = new Point(12, 388);
|
|
this.flatComboBox2.Name = "flatComboBox2";
|
|
this.flatComboBox2.Size = new Size(567, 23);
|
|
this.flatComboBox2.TabIndex = 1;
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new Point(12, 369);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new Size(105, 15);
|
|
this.label1.TabIndex = 2;
|
|
this.label1.Text = "Message box icons";
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new Point(12, 415);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new Size(118, 15);
|
|
this.label2.TabIndex = 3;
|
|
this.label2.Text = "Message box options";
|
|
this.textBox1.Location = new Point(12, 34);
|
|
this.textBox1.Name = "textBox1";
|
|
this.textBox1.Size = new Size(564, 22);
|
|
this.textBox1.TabIndex = 5;
|
|
this.textBox2.Location = new Point(15, 86);
|
|
this.textBox2.MaxLength = 200;
|
|
this.textBox2.Multiline = true;
|
|
this.textBox2.Name = "textBox2";
|
|
this.textBox2.Size = new Size(562, 270);
|
|
this.textBox2.TabIndex = 6;
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new Point(12, 68);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new Size(136, 15);
|
|
this.label3.TabIndex = 7;
|
|
this.label3.Text = "Message box description";
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new Point(11, 16 /*0x10*/);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new Size(98, 15);
|
|
this.label4.TabIndex = 8;
|
|
this.label4.Text = "Message box title";
|
|
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
|
this.rgbBuildButton1.Cursor = Cursors.Arrow;
|
|
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
|
|
this.rgbBuildButton1.ForeColor = Color.White;
|
|
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_chat_warning_24_filled;
|
|
this.rgbBuildButton1.IconSize = 25;
|
|
this.rgbBuildButton1.IconSpacing = 8;
|
|
this.rgbBuildButton1.Location = new Point(12, 463);
|
|
this.rgbBuildButton1.Name = "rgbBuildButton1";
|
|
this.rgbBuildButton1.Size = new Size(567, 46);
|
|
this.rgbBuildButton1.TabIndex = 9;
|
|
this.rgbBuildButton1.Text = "Show message box";
|
|
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
|
|
this.AutoScaleDimensions = new SizeF(7f, 15f);
|
|
this.AutoScaleMode = AutoScaleMode.Font;
|
|
this.ClientSize = new Size(591, 522);
|
|
this.Controls.Add((Control) this.rgbBuildButton1);
|
|
this.Controls.Add((Control) this.textBox2);
|
|
this.Controls.Add((Control) this.textBox1);
|
|
this.Controls.Add((Control) this.flatComboBox2);
|
|
this.Controls.Add((Control) this.flatComboBox1);
|
|
this.Controls.Add((Control) this.label4);
|
|
this.Controls.Add((Control) this.label3);
|
|
this.Controls.Add((Control) this.label2);
|
|
this.Controls.Add((Control) this.label1);
|
|
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 (ratonMessageBox);
|
|
this.StartPosition = FormStartPosition.CenterScreen;
|
|
this.Text = nameof (ratonMessageBox);
|
|
this.Load += new EventHandler(this.ratonMessageBox_Load);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
}
|