Ejemplo n.º 1
0
Archivo: UIEntry.cs Proyecto: wpmyj/c3
        /// <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();
                }
            }
        }
Ejemplo n.º 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();
 }