/// <summary> /// Show active flags for selected field in FormGUIStats representation /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void showFlagsToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView2.CurrentCell == null) { return; } // Get selected row index int rowIndex = dataGridView2.CurrentCell.RowIndex; int valueID = Convert.ToInt32(dataGridView2.Rows[rowIndex].Cells[1].Value.ToString()); var tuple = GetInstanceFromAllDataByDeviceID(valueID); if (tuple != null) { DataClass item = tuple.Item1; // Open new form with complete flag description FormGUIStats fg = new FormGUIStats(item); fg.Show(); } }
private void showStatsToolStripMenuItem_Click(object sender, EventArgs e) { FormGUIStats sf = new FormGUIStats(dataPtr); sf.Show(); }