/// <summary> /// 設定をロードする /// </summary> public static void Load() { var fileboxPath = SaveUtil.GetFileBoxConfigPath(); if (!File.Exists(fileboxPath)) { return; } // ちゃんとしたファイルを書き出す。 XmlSerializer serializer = new XmlSerializer(typeof(RecentlyFileBoxModel)); FileStream outstream = new System.IO.FileStream(fileboxPath, System.IO.FileMode.Open); try { _recentlyFileBoxModel = (RecentlyFileBoxModel)serializer.Deserialize(outstream); } catch (Exception) { } finally { outstream.Close(); } }
/// <summary> /// 設定をロードする /// </summary> public static void Load() { var fileboxPath = SaveUtil.GetFileBoxConfigPath(); if (!File.Exists(fileboxPath)) { return; } // ちゃんとしたファイルを書き出す。 XmlSerializer serializer = new XmlSerializer(typeof(RecentlyFileBoxModel)); FileStream outstream = new System.IO.FileStream(fileboxPath, System.IO.FileMode.Open); _recentlyFileBoxModel = (RecentlyFileBoxModel)serializer.Deserialize(outstream); outstream.Close(); }