private void NotifyCurrencyAlert(object sender, PropertyChangedEventArgs e) { CurrencyAlertData alertData = sender as CurrencyAlertData; if (alertData != null) { m_isAlerted = alertData.IsAlerted; NotifyPropertyChanged("IsAlerted"); } }
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)); } }