Private
Public Access
Relinked Paint function
This commit is contained in:
1 parent
9f5051b21c
commit
d2b5cceeca
2 files changed
+8
-11
No files matched your search
+1
-1
@@ -62,6 +62,7 @@
|
|||||||
this.panel1.Name = "panel1";
|
this.panel1.Name = "panel1";
|
||||||
this.panel1.Size = new System.Drawing.Size(537, 476);
|
this.panel1.Size = new System.Drawing.Size(537, 476);
|
||||||
this.panel1.TabIndex = 2;
|
this.panel1.TabIndex = 2;
|
||||||
|
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPreviewPane_Paint);
|
||||||
//
|
//
|
||||||
// Draw_Preview
|
// Draw_Preview
|
||||||
//
|
//
|
||||||
@@ -74,7 +75,6 @@
|
|||||||
this.Name = "Draw_Preview";
|
this.Name = "Draw_Preview";
|
||||||
this.Text = "Draw Preview";
|
this.Text = "Draw Preview";
|
||||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.DrawPreview_FormClosed);
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.DrawPreview_FormClosed);
|
||||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPreview_Paint);
|
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
|
|||||||
@@ -18,19 +18,16 @@ namespace Advanced_Software_Engineering
|
|||||||
SettingsAndHelperFunctions.NumberOfWindows++;
|
SettingsAndHelperFunctions.NumberOfWindows++;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DrawPreview_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
|
|
||||||
{
|
|
||||||
Point pt1 = new Point(0, 0);
|
|
||||||
Point pt2 = new Point(200, 200);
|
|
||||||
Graphics g = e.Graphics;
|
|
||||||
Pen myBlackPen = new Pen(Color.Black, 5);
|
|
||||||
|
|
||||||
g.DrawLine(myBlackPen, pt1, pt2);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void DrawPreview_FormClosed(object sender, FormClosedEventArgs e)
|
private void DrawPreview_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
{
|
{
|
||||||
SettingsAndHelperFunctions.WindowClosed();
|
SettingsAndHelperFunctions.WindowClosed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DrawPreviewPane_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
Graphics g = e.Graphics;
|
||||||
|
Pen myBlackPen = new Pen(Color.Black, 5);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user