private void btnOK_Click(object sender, EventArgs e) { Boolean isOpen = HDLSysPF.IsAlreadyOpenedForm("frmTSensor"); if (isOpen == false) { frmTSensor frmUpdate = new frmTSensor(myHVAC, 4, CsConst.HvacGroup, CsConst.TemperatureGroup, myDevName); frmUpdate.ShowDialog(); if (frmUpdate.DialogResult == System.Windows.Forms.DialogResult.OK) { pasteNewAddToolStripMenuItem_Click(pasteNewAddToolStripMenuItem, null); } } }
private void btnHVAC_Click(object sender, EventArgs e) { Boolean isOpen = HDLSysPF.IsAlreadyOpenedForm("frmTSensor"); if (isOpen == false) { frmTSensor frmUpdate = new frmTSensor(myHVAC, 4, CsConst.HvacGroup, CsConst.HvacGroup, myDevName); frmUpdate.ShowDialog(); if (frmUpdate.DialogResult == System.Windows.Forms.DialogResult.OK) { PasteH_Click(PasteRH, null); } } }