Esempio n. 1
0
 public Freelancer(double salary, string name, string surname)
 {
     Salary       = salary;
     this.name    = name;
     this.surname = surname;
     id           = tl_id.GenerateID(status);
 }
Esempio n. 2
0
        /// <summary>
        /// retuns new_id
        /// </summary>
        public string Add(FlightPlan plan)
        {
            string new_id = GeneratorID.GenerateID();

            PlansMutex.WaitOne();
            FltPlans[new_id] = plan;
            PlansMutex.ReleaseMutex();

            return(new_id);
        }