예제 #1
0
        private void gridObraSocial_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var grid = (DataGridView)sender;

            if (grid.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex >= 0)
            {
                ObraSocialAMFrm frm = new ObraSocialAMFrm();
                frm.ShowObraSocial(grid.Rows[e.RowIndex].DataBoundItem as ObraSocial, this);
            }

            if (grid.Columns[e.ColumnIndex] is DataGridViewTextBoxColumn)
            {
                MessageBox.Show(String.Format("pulsaste la celda {0}, {1}", e.ColumnIndex, e.RowIndex));
            }
        }
예제 #2
0
        private void NuevaObraSocialBtn_Click(object sender, EventArgs e)
        {
            ObraSocialAMFrm frm = new ObraSocialAMFrm();

            frm.NewObraSocial(this);
        }