예제 #1
0
        private void btnList_Click(object sender, EventArgs e)
        {
            List <object> Lst = new List <object>();

            Lst.Add(1);
            Lst.Add(10);
            Lst.Add(15);
            Lst.Add("Selin");
            Lst.Add("İstanbul");
            Lst.Add(8);

            lstData.Items.Clear();
            foreach (var eleman in Lst)
            {
                lstData.Items.Add(eleman);
            }
            MainPage.Laktar = Lst;

            IlkFormum ilk = new IlkFormum();

            Close();
            ilk.Show();
        }
예제 #2
0
        private void btnArrayList_Click(object sender, EventArgs e)
        {
            ArrayList arrayDizi = new ArrayList();

            arrayDizi.Add(2);
            arrayDizi.Add(11);
            arrayDizi.Add(15);
            arrayDizi.Add(18);
            arrayDizi.Add("Onur");
            arrayDizi.Add("Çorum");

            lstData.Items.Clear();

            arrayDizi.RemoveAt(2);
            foreach (object eleman in arrayDizi)
            {
                lstData.Items.Add(eleman);
            }
            MainPage.Aaktar = arrayDizi;
            IlkFormum ilk = new IlkFormum();

            Close();
            ilk.Show();
        }
예제 #3
0
        private void btnAl_Click(object sender, EventArgs e)
        {
            IlkFormum frm = new IlkFormum();

            txtBilgiAl.Text = frm.txtBilgi.Text;
        }