//Кнопка параметров private void buttonProperties_Click(object sender, EventArgs e) { StopRefresh(); if (Data.GetKey(255) == 255) { FormProperties form = new FormProperties(); form.ShowDialog(); } StartRefresh(); }