public bool SetStatus(Artpiece piece, char S) { if (S == 'D') { piece.status = 'D'; } piece.ChangeStatus(S); return(success); }
//00000000000000000000 public void SetComm(double P) //this method uses commRate to calculate the 10% { commission = Artpiece.CalculateComm(P) * commRate; //commission due and assign it to the currator identified by the artpiece OnChangedCommission(EventArgs.Empty); }
public void AddArtPiece(Artpiece thePiece) { List.Add(thePiece); }
//ArtPieces public void AddPieces(string I, string T, string Y, double E, string aI, string cI) { Artpiece thePiece = new Artpiece(I, T, Y, E, aI, cI); //Artpiece thePiece has been created ArtPiecesList.AddArtPiece(thePiece); //Artpiece thePiece has been stored into Piece ArtPiecesList list }