コード例 #1
0
        private void btnkaydet_Click(object sender, EventArgs e)
        {
            if (selectIndex == -1)
            {
                Kamera selectKam = new Kamera();
                selectKam.Aktif = checkKAktif.Checked;
                selectKam.Url   = textKUrl.Text;
                Kameralar.Add(selectKam);
            }
            else
            {
                Kameralar[selectIndex].Aktif = checkKAktif.Checked;
                Kameralar[selectIndex].Url   = textKUrl.Text;
            }

            selectIndex = -1;
            LoadSelect();
            DataProvider.SaveObj(Kameralar.XML_FILE_NAME, Kameralar);
            LoadKameralar();
        }
コード例 #2
0
 public void Remove(Kamera kmr)
 {
     this.InnerList.Remove(kmr);
 }
コード例 #3
0
 public int Add(Kamera kmr)
 {
     return(this.InnerList.Add(kmr));
 }