Ejemplo n.º 1
0
        private void modifyToolStripButton_Click(object sender, System.EventArgs e)
        {
            int rowIndex = mainDataGridView.Rows.GetFirstRow(DataGridViewElementStates.Selected);
            if (rowIndex > 0)
            {
                List<string> cellList = new List<string>();
                
                for (int i = 0; i < mainDataGridView.Rows[rowIndex].Cells.Count; i++ )
                {
                   cellList.Add(mainDataGridView.Rows[rowIndex].Cells[i].Value.ToString());
                }

                TrackListInsertForm addForm = new TrackListInsertForm(cellList);
                addForm.ShowDialog();
            }
        } 
Ejemplo n.º 2
0
 private void addToolStripButton_Click(object sender, System.EventArgs e)
 {
    TrackListInsertForm addForm = new TrackListInsertForm();
         addForm.ShowDialog();
 }