示例#1
0
        private void NotifyCurrencyAlert(object sender, PropertyChangedEventArgs e)
        {
            CurrencyAlertData alertData = sender as CurrencyAlertData;

            if (alertData != null)
            {
                m_isAlerted = alertData.IsAlerted;
                NotifyPropertyChanged("IsAlerted");
            }
        }
示例#2
0
        private void SetCurrencyAlertValue(string currencyName, double?value)
        {
            CurrencyAlertData alertData = m_currencyAlertDataList.FirstOrDefault(ad => ad.PairedCurrency == currencyName);

            if (alertData != null)
            {
                alertData.Price = value;
            }
            else
            {
                m_currencyAlertDataList.Add(new CurrencyAlertData(currencyName, value, NotifyCurrencyAlert));
            }
        }