그냥 무턱 대고 쓰기 보다는 이렇게 class로 정의 하는것이 효율적이다.
name도 const로 깔끔하게 정의 하고
역시 팀장님은 다른거 같다 ㅋㅋ
public class SettingsService
{
const string NormalCoinStyleKey = "NormalCoinStyle";
const string DefaultNormalCoinType = "Basic";
public SettingsService()
{
if (IsolatedStorageSettings.ApplicationSettings.Contains(NormalCoinStyleKey) == false)
{
IsolatedStorageSettings.ApplicationSettings.Add(NormalCoinStyleKey, DefaultNormalCoinType);
}
}
public string NormalCoinStyle
{
get
{
return IsolatedStorageSettings.ApplicationSettings[NormalCoinStyleKey] as string;
}
set
{
IsolatedStorageSettings.ApplicationSettings[NormalCoinStyleKey] = value;
IsolatedStorageSettings.ApplicationSettings.Save();
}
}
}
'Windows Phone 7' 카테고리의 다른 글
[wp7] 이미지 Build Action 의 Content 와 Resource의 차이 (0) | 2011.02.10 |
---|---|
휴즈플로우 앱 개발 뉴스 기사 (1) | 2011.01.27 |
[wp7] Observable Collection을 이용한 바인딩 (0) | 2011.01.06 |
[wp7] Image behind에서 바꾸기 (0) | 2011.01.05 |
[wp7] 분리된 어셈블리에 대해서 다국어 리소스지원 (0) | 2010.10.20 |