using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ÇİZGİ_1_PERŞEMBE
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Graphics g, g1;
private void
Form1_Load(object sender, EventArgs e)
{
}
private void
button1_Click(object sender, EventArgs e)
{
Pen kalem = new Pen(Color.Red,
5);
Pen kalem1 = new Pen(Color.Black,
5);
g
= this.CreateGraphics();
g1 = this.CreateGraphics();
g.DrawLine(kalem, 10, 10, 110, 10);
g.DrawLine(kalem, 10, 20, 110, 20);
g.DrawLine(kalem, 10, 30, 110, 30);
g.DrawLine(kalem, 10, 40, 110, 40);
g.DrawLine(kalem, 10, 50, 110, 50);
g1.DrawLine(kalem1, 110, 10, 210, 10);
g1.DrawLine(kalem1, 110, 20, 210, 20);
g1.DrawLine(kalem1, 110, 30, 210, 30);
g1.DrawLine(kalem1, 110, 40, 210, 40);
g1.DrawLine(kalem1, 110, 50, 210, 50);
g1.DrawLine(kalem1, 10, 60, 110, 60);
g1.DrawLine(kalem1, 10, 70, 110, 70);
g1.DrawLine(kalem1, 10, 80, 110, 80);
g1.DrawLine(kalem1, 10, 90, 110, 90);
g1.DrawLine(kalem1, 10, 100, 110, 100);
g.DrawLine(kalem, 110, 60, 210, 60);
g.DrawLine(kalem, 110, 70, 210, 70);
g.DrawLine(kalem, 110, 80, 210, 80);
g.DrawLine(kalem, 110, 90, 210, 90);
g.DrawLine(kalem, 110, 100, 210, 100);
}
private void
button2_Click(object sender, EventArgs e)
{
Pen kalem = new Pen(Color.Red,
5);
g
= this.CreateGraphics();
g.DrawLine(kalem, 230, 10, 330, 10);
g.DrawLine(kalem, 230, 20, 330, 20);
g.DrawLine(kalem, 230, 30, 330, 30);
g.DrawLine(kalem, 230, 40, 330, 40);
g.DrawLine(kalem, 230, 50, 330, 50);
g.DrawLine(kalem, 330, 60, 430, 60);
g.DrawLine(kalem, 330, 70, 430, 70);
g.DrawLine(kalem, 330, 80, 430, 80);
g.DrawLine(kalem, 330, 90, 430, 90);
g.DrawLine(kalem, 330, 100, 430, 100);
}
private void
button3_Click(object sender, EventArgs e)
{
Pen kalem1 = new Pen(Color.Black,
5);
g1 = this.CreateGraphics();
g1.DrawLine(kalem1, 540, 10, 640, 10);
g1.DrawLine(kalem1, 540, 20, 640, 20);
g1.DrawLine(kalem1, 540, 30, 640, 30);
g1.DrawLine(kalem1, 540, 40, 640, 40);
g1.DrawLine(kalem1, 540, 50, 640, 50);
g1.DrawLine(kalem1, 440, 60, 540, 60);
g1.DrawLine(kalem1, 440, 70, 540, 70);
g1.DrawLine(kalem1, 440, 80, 540, 80);
g1.DrawLine(kalem1, 440, 90, 540, 90);
g1.DrawLine(kalem1, 440, 100, 540, 100);
}
private void
button4_Click(object sender, EventArgs e)
{
Pen kalem = new Pen(Color.Red,
5);
g
= this.CreateGraphics();
Pen kalem1 = new Pen(Color.Black,
5);
g1 = this.CreateGraphics();
g1.DrawLine(kalem1, 10, 140, 640, 140);
g.DrawLine(kalem, 10, 160, 645, 160);
}
}
}