コード例 #1
0
        public OrderService(User user, List <Dish> dish, Pay pay, string SeatOrGo, double Price, Feedback feedback, string Nots)/*בנאי להזמנה מהמסעדב*/
        {
            Random r = new Random();

            this.IdOrder   = r.Next();
            this.user      = user;
            this.dishes    = dish;
            this.pay       = pay;
            this.SeatOrGo  = SeatOrGo;
            this.TableBnum = r.Next(1, 40);
            this.timer     = new Stopwatch();
            this.feedback  = feedback;
            timer.Start();//הפעלת הטיימר
            this.price = Price;
            this.Nots  = Nots;
        }
コード例 #2
0
        public OrderService(User user, List <Dish> dish, Pay pay, string seatOrGo, double Price, Feedback feedback, string nots)/*בנאי להזמנה מהמסעדב*/
        {
            Random r = new Random();

            this.idOrder   = r.Next();
            this.user      = user;
            this.dishes    = dish;
            this.pay       = pay;
            this.seatOrGo  = seatOrGo;
            this.tableBnum = r.Next(1, 40);
            this.feedBack  = feedback;
            this.price     = Price;
            this.notes     = nots;
        }