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

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

parent 8cc9a3d7
......@@ -30,7 +30,7 @@ namespace MultiLayout.UiModule
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
}
/// <summary>
///
/// </summary>
......@@ -38,7 +38,7 @@ namespace MultiLayout.UiModule
public abstract class UIModuleParams<T> : INotifyPropertyChanged
where T : UIModuleParam
{
/// <summary>
///
/// </summary>
......@@ -60,7 +60,7 @@ namespace MultiLayout.UiModule
Save();
}
}
/// <summary>
/// 保存
/// </summary>
......@@ -80,13 +80,13 @@ namespace MultiLayout.UiModule
File.WriteAllText(FilePath, json);
}
catch
catch
{
return false;
}
return true;
}
/// <summary>
/// 读取
/// </summary>
......@@ -99,7 +99,7 @@ namespace MultiLayout.UiModule
Newtonsoft.Json.JsonConvert.PopulateObject(json, this);
return true;
}
catch
catch
{
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