mirror of
https://github.com/wagesj45/butterflow-ui.git
synced 2025-09-09 03:00:39 -05:00
Saving Configurations to Files
This commit is contained in:
parent
5083716c05
commit
50eb034ac9
9 changed files with 133 additions and 19 deletions
|
|
@ -42,10 +42,21 @@ namespace butterflow_ui
|
|||
}
|
||||
}
|
||||
|
||||
protected virtual void OnAllPropertiesChanged()
|
||||
{
|
||||
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(string.Empty));
|
||||
}
|
||||
|
||||
/// <summary> Adds a property that will always be called when any property is updated.. </summary>
|
||||
/// <param name="name"> The name of the property. </param>
|
||||
public void AddConstantCallProperty(string name)
|
||||
{
|
||||
if(this.alwaysCall == null)
|
||||
{
|
||||
// This item has been deserialized and the list needs to be reinitialized.
|
||||
this.alwaysCall = new List<string>();
|
||||
}
|
||||
|
||||
if (!this.alwaysCall.Any(c => c.Equals(name, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
this.alwaysCall.Add(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue