MalwareSourceCode/MSIL/Virus/Win32/V/Virus.Win32.Virut.q-2b457b7ac6d929d9f9e89b52c8d2100f00c731f2b4adf1170c227cdf7f0a505c/Form1.cs

49 lines
1.4 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: ContohDashStyle.Form1
// Assembly: ContohDashStyle, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: EA34A561-71A5-4456-810F-D952C4E2E14D
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare.00004-msil\Virus.Win32.Virut.q-2b457b7ac6d929d9f9e89b52c8d2100f00c731f2b4adf1170c227cdf7f0a505c.exe
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace ContohDashStyle
{
public class Form1 : Form
{
private IContainer components = (IContainer) null;
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.SuspendLayout();
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(251, 266);
this.Name = nameof (Form1);
this.Text = "Contoh DashStyle";
this.Paint += new PaintEventHandler(this.Form1_Paint);
this.ResumeLayout(false);
}
public Form1() => this.InitializeComponent();
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle rect = new Rectangle(50, 50, 150, 150);
e.Graphics.DrawRectangle(new Pen(Color.Blue, 5f)
{
DashStyle = DashStyle.DashDotDot
}, rect);
}
}
}