private void LoadKujiSettings() { if (!File.Exists(_setting.KujiPath)) { KujiSettings = new KujiSettings(); KujiSettings.KujiDatas = new List <KujiData>(); SaveKujiSettings(); } XmlSerializer se = new XmlSerializer(typeof(KujiSettings)); using (StreamReader sr = new StreamReader(_setting.KujiPath, Encoding.UTF8)) { KujiSettings = (KujiSettings)se.Deserialize(sr); } if (KujiSettings.KujiDatas == null) { KujiSettings.KujiDatas = new List <KujiData>(); } }
public KujiSettingWindow(KujiSettings kujiSettings) { InitializeComponent(); kujiListView.GetType().InvokeMember("DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty, null, kujiListView, new object[] { true }); }