示例#1
0
文件: GSM.cs 项目: p-k-p/softacad
 public void MakeCall(GSM receiver, double duration)
 {
     if (Call.IsDurationValid(duration))
     {
         if (this.SimMobileNumber != receiver.SimMobileNumber)
         {
             if (this.HasSimCard && receiver.HasSimCard)
             {
                 Call newcall = new Call(this, receiver, duration);
                 this.LastOutgoingCall       = newcall;
                 receiver.LastIncomingCall   = newcall;
                 this.OutgoingCallsDuration += duration;
             }
         }
     }
 }
示例#2
0
文件: Call.cs 项目: p-k-p/softacad
 public Call(GSM caller, GSM receiver, double duration)
 {
     this.Caller   = caller;
     this.Receiver = receiver;
     this.Duration = duration;
 }