Beispiel #1
0
 public bool SetStatus(Artpiece piece, char S)
 {
     if (S == 'D')
     {
         piece.status = 'D';
     }
     piece.ChangeStatus(S);
     return(success);
 }
Beispiel #2
0
 //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);
 }
Beispiel #3
0
 public void AddArtPiece(Artpiece thePiece)
 {
     List.Add(thePiece);
 }
Beispiel #4
0
        //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
        }