public void AddToClass(int ID, DateTime Date, string Opis) { Dane DaneN = new Dane(ID, Date, Opis); DaneNowe.Add(DaneN); WriteJSON writeJSON = new WriteJSON(); writeJSON.JSON_Create(); }
public void ToRemove(int DoUsuniecia) { Dane SearchIn = GetValidate.Search(DoUsuniecia); var ObiektDousuniecia1 = DaneNowe.IndexOf(SearchIn); DaneNowe.RemoveAt(ObiektDousuniecia1); WriteJSON writeJSON = new WriteJSON(); writeJSON.JSON_Create(); }
static void Main() { DaneNowe = new List <Dane>(); WriteJSON writeJSON = new WriteJSON(); writeJSON.CheckFolder(); MenuClass menuClass = new MenuClass(); Console.ForegroundColor = ConsoleColor.Green; menuClass.Select_Menu(); }