皆さん、まず説明が悪くてすみません。私の仕事は、私が少し前に書いたアプリケーションの翻訳です。通常、特別なことは何もありません。
しかし今、私は棒に立っています。私のアプリケーションの 1 つの機能は、履歴を保存することです。そのための基本クラスを作成しました。
public class GHistoryClass
{
public GHistoryClass(string act, string icop, string categ, string desc,)
{
this.m_Action = act;
this.m_IconPath = icop;
this.m_Description = desc;
this.m_Category = categ;
}
public string m_Action { get; set; }
public string m_Description { get; set; }
public string m_Category { get; set; }
public string m_IconPath { get; set; }
}
ObservableCollectionのように履歴を保存していIsolatedStorageます。言語が変更されたら、歴史を翻訳したいと思います。
m_Actionに接続する方法など、わかりませんlocalized resourses。
どんなアイデアでも大歓迎です。
編集
トリックを行うべきだと思うのは、AppResourcesプロパティ名の名前を文字列として保存することです。そのためm_Action = "AppResources.firstaction"、私の考えは、それを としてキャストすることPropertyPathです。これは良い考えですか、どうすれstringばobject名前に変換できますか?