Ejemplo n.º 1
0
 private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     int index = e.RowIndex;
     Attraction attr = (Attraction)((IList<Attraction>)dataGridView1.DataSource).ToList<Attraction>().ElementAt<Attraction>(index);
     Form f=new AttractionEdiorForm(attr);
     f.Visible = true;
 }
Ejemplo n.º 2
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int        index = e.RowIndex;
            Attraction attr  = (Attraction)((IList <Attraction>)dataGridView1.DataSource).ToList <Attraction>().ElementAt <Attraction>(index);
            Form       f     = new AttractionEdiorForm(attr);

            f.Visible = true;
        }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     AttractionEdiorForm form = new AttractionEdiorForm();
 }
Ejemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     AttractionEdiorForm form = new AttractionEdiorForm();
 }