Пример #1
0
 private void dGVElements_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     string cell = (sender as DataGridView).Rows[(sender as DataGridView).CurrentCell.RowIndex].Cells[1].Value.ToString();
     using (MoreStatsForm form = new MoreStatsForm(cell))
     {
         form.ShowDialog();
     }
 }
Пример #2
0
 private void lBElements_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (lBElements.SelectedItem != null)
     {
         string[] split = lBElements.SelectedItem.ToString().Split(' ');
         MoreStatsForm MF = new MoreStatsForm(split[0], false);
         MF.ShowDialog();
     }
 }