public static void WritePrograms() { DefaultPrograms temp; temp = new DefaultPrograms("Arroz", "Aquece arroz pré cozido", '@', 5, 30); programsList.Add(temp); temp = new DefaultPrograms("Pipoca", "Prepara pipocas com embalagens para microondas", '$', 8, 35); programsList.Add(temp); temp = new DefaultPrograms("Carne", "Descongela carnes", '%', 1, 50); programsList.Add(temp); temp = new DefaultPrograms("Ovo", "Cozinha ovos", '#', 7, 45); programsList.Add(temp); temp = new DefaultPrograms("Bolo", "Assar massas", '&', 6, 100); programsList.Add(temp); }
public static void AddCustomProgram(string name, string instruction, char character, int power, int timer) { DefaultPrograms customProgram = new DefaultPrograms(name, instruction, character, power, timer); DefaultPrograms.programsList.Add(customProgram); }