Exemplo n.º 1
0
        public static void Update(string oldOznaka, string newOznaka)
        {
            int index = stoloviList.FindIndex(s => s.Oznaka == oldOznaka);

            if (index >= 0)
            {
                stoloviList[index].Oznaka = newOznaka;
                DBStol.UpdateStol(stoloviList[index]);
                MainWindow.stolChanged();
            }
        }
Exemplo n.º 2
0
 static StoloviPresenter()
 {
     stoloviList.Add(new Stol("-", 1));
     stoloviList.AddRange(DBStol.GetStolove());
 }
Exemplo n.º 3
0
 public static void Delete(Stol s)
 {
     stoloviList.Remove(s);
     DBStol.DeleteStol(s);
     MainWindow.stolChanged();
 }
Exemplo n.º 4
0
 public static void Add(Stol s)
 {
     stoloviList.Add(s);
     DBStol.SaveStol(ref s);
     MainWindow.stolChanged();
 }