public static TemplatePreference GetInstance() { if (mTemplatePreference == null) mTemplatePreference = new TemplatePreference(); return mTemplatePreference; }
private void SetPreference() { mTemplatePreference = TemplatePreference.GetInstance(); //設定是否使用自訂樣版 if (mTemplatePreference.UseDefaultTemplate) radioButton1.Checked = true; else radioButton2.Checked = true; }