Example #1
0
        public void remove_order(client c, int id)
        {
            Repairer r = RepairersRecords.Search_Repairer(id);

            foreach (client cl in r.Orders)
            {
                if (c == cl)
                {
                    r.Orders.Remove(cl);
                }
            }
        }
Example #2
0
        public bool Assign_client(client c)
        {
            bool msg = RepairersRecords.Assign_client(c);

            return(msg);
        }
Example #3
0
        public bool Repairer_NotBuzy(Repairer r)
        {
            bool status = RepairersRecords.Repairer_NotBusy(r);

            return(status);
        }
Example #4
0
 public void Add_Repairer(string name, string addres, string cellno, string cnic, int id)
 {
     RepairersRecords.Add_Repairer(name, addres, cellno, cnic, id);
 }
Example #5
0
        public bool pay(client c, int amount)
        {
            bool stat = RepairersRecords.pay_amount(c, amount);

            return(stat);
        }
Example #6
0
        public bool edit_repairer(Repairer r)
        {
            bool x = RepairersRecords.edit(r);

            return(x);
        }
Example #7
0
        public void del_repairer(int id)
        {
            Repairer r = RepairersRecords.Search_Repairer(id);

            RepairersRecords.repairers.Remove(r);
        }
Example #8
0
        public Repairer Search_Repairer(int id)
        {
            Repairer r = RepairersRecords.Search_Repairer(id);

            return(r);
        }
Example #9
0
 public void fix_app(client c, int id)
 {
     RepairersRecords.appoint_client(c, id);
 }