Esempio n. 1
0
        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);
                }
            }
        }
Esempio n. 2
0
        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);
                }
            }
        }