private void cmdsList_Click(object sender, EventArgs e) { CommList cmds = new CommList(app.TypeCRC); cmds.Packets = app.Serial.StaticPackets; if (cmds.ShowDialog(this) == DialogResult.OK) { app.Serial.ClearStatic(); if (cmds.Packets != null) { foreach (var item in cmds.Packets) { app.Serial.InsertPacketToStatic(item); } } } }