public department(int number, int num_tec, string nam, int pos, int num_lines) //конструктор ініціалізації { number_workers = number; number_tecnic = num_tec; name = nam; pos_in_prod = pos; number_lines = num_lines; for (int i = 0; i < number_lines; i++) { conveyer_line line = new conveyer_line(); conveyer_lines.Add(line); } for (int i = 0; i < number_lines; i++) { tecnique tec = new tecnique(); tecniques.Add(tec); } kan = new kanban(); //store product = new store(st); Console.WriteLine("The department was created by initialisation\n"); }
/// <summary> /// Remove an existing tecnique from the collection /// </summary> /// <pdGenerated>Default Remove</pdGenerated> public void RemoveTecnique(tecnique oldTecnique) { if (oldTecnique == null) { return; } if (this.tecnique != null) { if (this.tecnique.Contains(oldTecnique)) { this.tecnique.Remove(oldTecnique); } } }
/// <summary> /// Add a new tecnique in the collection /// </summary> /// <pdGenerated>Default Add</pdGenerated> public void AddTecnique(tecnique newTecnique) { if (newTecnique == null) { return; } if (this.tecnique == null) { this.tecnique = new System.Collections.ArrayList(); } if (!this.tecnique.Contains(newTecnique)) { this.tecnique.Add(newTecnique); } }
public department() //конструктор за замовчуванням { number_workers = 10; number_tecnic = 0; name = ""; pos_in_prod = 1; number_lines = 0; for (int i = 0; i < number_lines; i++) { conveyer_line line = new conveyer_line(); conveyer_lines.Add(line); } for (int i = 0; i < number_lines; i++) { tecnique tec = new tecnique(); tecniques.Add(tec); } kan = new kanban(); Console.WriteLine("The department was created by default\n"); }
public tecnique(tecnique arg) //конструктор копіювання { worked_years = arg.worked_years; qualification = arg.qualification; Console.WriteLine("The tecnique was created by copy"); }