示例#1
0
 public shirt(shirtType myType, Image pic)
 {
     myImage     = pic;
     this.myType = myType;
     picked      = null;
     numWeeks    = null;
     available   = true;  //This shirt is available
     del         = false; //Don't delete
 }
示例#2
0
 public bool createShirt(shirtType type, Image pic)
 {
     try
     {
         shirt newShirt = new shirt(type, pic);
         shirtManager.getShirts.addShirt(newShirt);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }