Exemplo n.º 1
0
       /* private void customerAppointment_Load(object sender, EventArgs e)
        {
            int Cid = Convert.ToInt32(CD);
            foreach (Costumer C in Program.Costumerslist)
            {
                if (C.get_id() != Cid)
                {
                    MessageBox.Show("Customer is not in the system");
                }
                else
                {

                    foreach (Appointment A in C.Getappointments_thatNotPaied())
                    {
                        checkedListBox1.Items.Insert(0, A.get_appointmentid());
                    }
                }
            }

        }
        */
        public void checkedListBox1_SelectedIndexChanged_1(object sender, EventArgs e)
        {
            pp = new PAYPIC();
            int x = pp.get_TextBox1Val();
            Costumer temp = pp.whichCostumer(x);
              foreach (Appointment A in temp.Getappointments_thatNotPaied())
                    {
                        checkedListBox1.Items.Add(A.GetNAme());
                        
                    }
        }