예제 #1
0
    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");
    }
예제 #2
0
파일: kanban.cs 프로젝트: ShylyukDavid/c3
 public kanban(kanban arg)                //конструктор копіювання
 {
     number_prod = new System.Collections.ArrayList();
     kind_prod   = new System.Collections.ArrayList();
     // number_prod.AddRange(num_prod);
     // kind_prod.AddRange(kind);
     number_prod           = arg.number_prod;
     kind_prod             = arg.kind_prod;
     send_depart           = arg.send_depart;
     adress_depart         = arg.adress_depart;
     time_spent_production = arg.time_spent_production;
     Console.WriteLine("The kanban was created by copy");
 }
예제 #3
0
    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");
    }