Exemplo n.º 1
0
 private void SetDefault(DefaultMakeup choice)
 {
     if(choice != DefaultMakeup.Customized)
     {
         if(choice == DefaultMakeup.Normal)
         {
             this.WorkLines.Add(Requirement.LaserCutter, 1);
             this.WorkLines.Add(Requirement.Bending, 1);
             this.WorkLines.Add(Requirement.Assembling, 1);
         }
         else if(choice == DefaultMakeup.Bread)
         {
             this.WorkLines.Add(Requirement.Milling, 1);
             this.WorkLines.Add(Requirement.LaserCutter, 1);
             this.WorkLines.Add(Requirement.Bending, 1);
             this.WorkLines.Add(Requirement.Assembling, 1);
         }
         else if (choice == DefaultMakeup.Toast)
         {
             this.WorkLines.Add(Requirement.Milling, 1);
             this.WorkLines.Add(Requirement.Punching, 1);
             this.WorkLines.Add(Requirement.LaserCutter, 1);
             this.WorkLines.Add(Requirement.Shears, 1);
             this.WorkLines.Add(Requirement.Bending, 1);
             this.WorkLines.Add(Requirement.Assembling, 1);
         }
         else if (choice == DefaultMakeup.Press)
         {
             this.WorkLines.Add(Requirement.Milling, 1);
             this.WorkLines.Add(Requirement.Bending, 1);
             this.WorkLines.Add(Requirement.Assembling, 1);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initiate Makeup by using default setup
 /// </summary>
 /// <param name="choice">DefaultMakeup enum</param>
 public Makeup(DefaultMakeup choice)
 {
     this.SetDefault(choice);
 }