Ejemplo n.º 1
0
        private void ajouterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Visites A = new Visites();

            A.MdiParent = this;
            A.Show();
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "")
     {
         Visites V = new Visites(dateTimePicker1.Value, dateTimePicker2.Value, int.Parse(comboBox1.Text), Double.Parse(textBox1.Text));
         Program.CB.LV1.Add(V);
         label7.Text = " Visite ajouter";
     }
     Vider();
 }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Visites v = new Visites();

            v.DateVisites  = dateTimePicker1.Value;
            v.HeureVisites = dateTimePicker2.Value;
            v.CodePatients = int.Parse(comboBox1.SelectedItem.ToString());
            v.Montantpayé  = Double.Parse(textBox1.SelectedItem.ToString());
            Program.cb.Visites.Add(v);
        }