rendered paste bodyusing System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace MONO_testApp {
/// <summary>
/// Summary description for Form1.
/// </summary>
public class PEA : PaintEventArgs {
public PEA(Graphics g, Rectangle clip) : base(g, clip) {
}
protected override void Dispose(bool disposing) {
Console.WriteLine("Dispose({0}) called", disposing);
base.Dispose (disposing);
}
}
public class Form1 : System.Windows.Forms.Form {
public Form1() {
//
// Required for Windows Form Designer support
//
InitializeComponent();
Graphics g = Graphics.FromHwnd(this.Handle);
PEA t = new PEA(g, new Rectangle(0, 0, 10, 10));
t.Dispose();
g.BeginContainer();
}
private void InitializeComponent() {
this.SuspendLayout();
//
// Form1
//
this.AutoScale = false;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(346, 98);
this.ForeColor = System.Drawing.Color.Black;
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
[STAThread]
static void Main() {
Application.Run(new Form1());
}
}
}