/// <summary> /// определяем сигнал тревоги газа 20 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { GasAlarmForm frm = new GasAlarmForm(); if (frm.ShowDialog(this) == DialogResult.OK) { } }