MalwareSourceCode/MSIL/Virus/Win32/S/Virus.Win32.Sality.sil-906e49d7772808af1fb67511fd33b01c809079fddb77015425883ca9739cad33/MigratorMessageBox.cs

86 lines
3.4 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: Autodesk.AutoCAD.ADMigrator.MigratorMessageBox
// Assembly: ADMigrator, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 1EA8663B-E949-4FAD-ABC5-280393847F56
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Virus.Win32.Sality.sil-906e49d7772808af1fb67511fd33b01c809079fddb77015425883ca9739cad33.exe
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Autodesk.AutoCAD.ADMigrator
{
public class MigratorMessageBox : Form
{
private Button YesButton;
private Button NoButton;
private Label MessageText;
private Container components;
private PictureBox pictureBox1;
private Label WarningText;
private DialogResult mResult = DialogResult.Cancel;
public DialogResult DlgResult => this.mResult;
public MigratorMessageBox()
{
this.InitializeComponent();
this.pictureBox1.Image = (Image) SystemIcons.Question.ToBitmap();
}
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 (MigratorMessageBox));
this.YesButton = new Button();
this.NoButton = new Button();
this.MessageText = new Label();
this.pictureBox1 = new PictureBox();
this.WarningText = new Label();
((ISupportInitialize) this.pictureBox1).BeginInit();
this.SuspendLayout();
componentResourceManager.ApplyResources((object) this.YesButton, "YesButton");
this.YesButton.DialogResult = DialogResult.OK;
this.YesButton.Name = "YesButton";
componentResourceManager.ApplyResources((object) this.NoButton, "NoButton");
this.NoButton.DialogResult = DialogResult.Cancel;
this.NoButton.Name = "NoButton";
componentResourceManager.ApplyResources((object) this.MessageText, "MessageText");
this.MessageText.Name = "MessageText";
componentResourceManager.ApplyResources((object) this.pictureBox1, "pictureBox1");
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.TabStop = false;
componentResourceManager.ApplyResources((object) this.WarningText, "WarningText");
this.WarningText.Name = "WarningText";
componentResourceManager.ApplyResources((object) this, "$this");
this.Controls.Add((Control) this.pictureBox1);
this.Controls.Add((Control) this.MessageText);
this.Controls.Add((Control) this.NoButton);
this.Controls.Add((Control) this.YesButton);
this.Controls.Add((Control) this.WarningText);
this.FormBorderStyle = FormBorderStyle.FixedDialog;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = nameof (MigratorMessageBox);
((ISupportInitialize) this.pictureBox1).EndInit();
this.ResumeLayout(false);
}
public static DialogResult Show(string msg, string msgCaregory, string title)
{
MigratorMessageBox migratorMessageBox = new MigratorMessageBox();
migratorMessageBox.Text = title;
migratorMessageBox.WarningText.Text = msgCaregory;
migratorMessageBox.MessageText.Text = msg;
return migratorMessageBox.ShowDialog();
}
}
}