예제 #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());
                        
                    }
        }
예제 #2
0
 private void PayOPTION_Click(object sender, EventArgs e)
 {
     PAYPIC F1 = new PAYPIC();
     F1.Show();
     this.Hide();
 }