public Servis() { InitializeComponent(); ServisLoad.Pocetna(this); path = _user + "/servis.txt"; //ako ne postoji taj file if (File.Exists(path)) { ServisLoad.AddServisListBox(this, path); } }
private void btOTK_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex == -1) { MessageBox.Show("Odaberite auto!"); return; } ServisLoad.RemoveFromListbox(this, path); listBox1.Items.Clear(); if (File.Exists(path)) { ServisLoad.AddServisListBox(this, path); } }