private void btnDikdortgen_Click(object sender, EventArgs e) { Dikdortgen d = new Dikdortgen(); d.X = (int)nudX.Value; d.Y = (int)nudY.Value; d.Genislik = (int)nudGenislik.Value; d.Yukseklik = (int)nudYukseklik.Value; d.DolguRenk = cdiCizim.Color; dikdortgens.Add(d); }
private void pnlCizim_MouseMove(object sender, MouseEventArgs e) { if (suruklenenIndex != -1) { Dikdortgen suruklenen = dikdortgens[suruklenenIndex]; suruklenen.X = e.X - surukleSol; suruklenen.Y = e.Y - surukleUst; pnlCizim.Refresh(); } else if (suruklenenIndex1 != -1) { Ucgen suruklenen1 = ucgens[suruklenenIndex1]; suruklenen1.X = e.X - surukleSol1; suruklenen1.Y = e.Y - surukleUst1; pnlCizim.Refresh(); } }