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(); }
public void Remove(Kamera kmr) { this.InnerList.Remove(kmr); }
public int Add(Kamera kmr) { return(this.InnerList.Add(kmr)); }