Commit d67c4e95 authored by 潘栩锋's avatar 潘栩锋 🚴

添加 组件保存参数 找不到layout文件夹时,会自动创建

parent 8cc9a3d7
...@@ -30,7 +30,7 @@ namespace MultiLayout.UiModule ...@@ -30,7 +30,7 @@ namespace MultiLayout.UiModule
/// </summary> /// </summary>
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
} }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
...@@ -38,7 +38,7 @@ namespace MultiLayout.UiModule ...@@ -38,7 +38,7 @@ namespace MultiLayout.UiModule
public abstract class UIModuleParams<T> : INotifyPropertyChanged public abstract class UIModuleParams<T> : INotifyPropertyChanged
where T : UIModuleParam where T : UIModuleParam
{ {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
...@@ -60,7 +60,7 @@ namespace MultiLayout.UiModule ...@@ -60,7 +60,7 @@ namespace MultiLayout.UiModule
Save(); Save();
} }
} }
/// <summary> /// <summary>
/// 保存 /// 保存
/// </summary> /// </summary>
...@@ -80,13 +80,13 @@ namespace MultiLayout.UiModule ...@@ -80,13 +80,13 @@ namespace MultiLayout.UiModule
File.WriteAllText(FilePath, json); File.WriteAllText(FilePath, json);
} }
catch catch
{ {
return false; return false;
} }
return true; return true;
} }
/// <summary> /// <summary>
/// 读取 /// 读取
/// </summary> /// </summary>
...@@ -99,7 +99,7 @@ namespace MultiLayout.UiModule ...@@ -99,7 +99,7 @@ namespace MultiLayout.UiModule
Newtonsoft.Json.JsonConvert.PopulateObject(json, this); Newtonsoft.Json.JsonConvert.PopulateObject(json, this);
return true; return true;
} }
catch catch
{ {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment