private void btnShowCmdDataGrid_Click(object sender, EventArgs e) { dataGridCommands.Rows.Add(cmd.GetName(), cmd.GetFunc(), cmd.GetUnits()); }