Görsel Programlama (Güz-2016) Hafta-8-2
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ornek1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btemizle_Click(object sender, EventArgs e) { licerik.Items.Clear(); } private void bduzenle_Click(object sender, EventArgs e) { fduzenle frm = new fduzenle(licerik); frm.ShowDialog(); } } }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ornek1 { public partial class fduzenle : Form { ListBox lx; public fduzenle(ListBox lb) { InitializeComponent(); lx = lb; } private void bekle_Click(object sender, EventArgs e) { if (ticerik.Text.Length > 0) { lx.Items.Add(ticerik.Text); ticerik.Clear(); } } private void bcikis_Click(object sender, EventArgs e) { this.Close(); } } }