diff --git a/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs b/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs index 284fe629d..34cbcb172 100644 --- a/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs +++ b/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs @@ -15,6 +15,7 @@ namespace mbts.spark { readonly DeferrableActionWrapper _change_logger; readonly DelegateProperty _can_undo, _can_redo, _is_dirty; readonly Property _is_default; + readonly Property _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;