private void LoadData()
        {
            var type = fanuc.CurMacroBom.GetType();

            foreach (PropertyInfo item in type.GetProperties())
            {
                var attributes = item.GetCustomAttribute <DisplayAttribute>();

                if (attributes != null && (attributes.GetAutoGenerateField() ?? true))
                {
                    var limit = item.GetValue(fanuc.CurMacroBom) as MacroBomItem;
                    if (limit == null)
                    {
                        continue;
                    }
                    var node = new SystemMacroItemViewModel()
                    {
                        PropertyName = item.Name,
                        Title        = attributes.Name,
                        Address      = limit?.Adr ?? 0
                    };
                    node.ShowDialogEvent += Node_ShowDialogEvent;
                    MacroNodes.Add(node);
                }
            }
        }
 private void Node_ShowDialogEvent(SystemMacroItemViewModel arg1)
 {
     ShowDialogWindowEvent?.Invoke(arg1);
 }