AlgoDefinitionTemplateVM - add 'abbreviation' property (for ladder 'favorites' buttons)
This commit is contained in:
1 parent
5d489d7d9f
commit
79b87ddfbc
1 file changed
+3
@@ -15,6 +15,7 @@ namespace mbts.spark {
|
||||
readonly DeferrableActionWrapper _change_logger;
|
||||
readonly DelegateProperty<bool> _can_undo, _can_redo, _is_dirty;
|
||||
readonly Property<bool> _is_default;
|
||||
readonly Property<string> _abbreviation;
|
||||
Snapshot _committed;
|
||||
string _name;
|
||||
|
||||
@@ -25,6 +26,7 @@ namespace mbts.spark {
|
||||
this.owner = owner;
|
||||
vm_key = string.IsNullOrEmpty(id) ? new VMKey(Guid.NewGuid()) : new VMKey(id);
|
||||
_name = name;
|
||||
_abbreviation = backing(nameof(abbreviation), name);
|
||||
_is_default = backing(nameof(is_default), false);
|
||||
algo_root = OrderTypeVMFactory.create(model, definition.CustomCase, OrderTypeEditingPermissions.AllowEditValues);
|
||||
algo_root.load_from(definition);
|
||||
@@ -68,6 +70,7 @@ namespace mbts.spark {
|
||||
}
|
||||
}
|
||||
}
|
||||
public string abbreviation { get => _abbreviation.Value; set => _abbreviation.set(value); }
|
||||
public bool is_dirty => _is_dirty.Value;
|
||||
public bool can_redo => _can_redo.Value;
|
||||
public bool can_undo => _can_undo.Value;
|
||||
|
||||
Reference in new issue
Block a user