Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void _otProviderSetting_Click(object sender, EventArgs e)
        {
            frmOutsideStandard f = new frmOutsideStandard();

            if (f.ShowDialog() == DialogResult.OK)
            {
                IOutside outSide = f.SelectedOutSide;
                if (outSide != null)
                {
                    OutsideTemperatureProviderManager.Provider = new DeviceOTProvider(outSide);

                    int deviceID = GuidHelper.ConvertToInt32(((IDevice)outSide).Guid);
                    DBI.Instance.SetOutsideTemperatureProviderDevice(deviceID);
                }
                else
                {
                    OutsideTemperatureProviderManager.Provider = null;
                    DBI.Instance.ClearOutsideTemperatureProviderDevice();
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void _otProviderSetting_Click(object sender, EventArgs e)
 {
     frmOutsideStandard f = new frmOutsideStandard();
     f.ShowDialog();
 }