private void ShowRuntimeWarnings()
        {
            // Clear all previous warnings
            var warnings = liveRunnerServices.GetRuntimeWarnings();

            foreach (var item in warnings)
            {
                Guid guid = item.Key;
                var  node = controller.DynamoViewModel.Model.HomeSpace.Nodes.FirstOrDefault(n => n.GUID == guid);
                if (node != null)
                {
                    string warningMessage = string.Join("\n", item.Value.Select(w => w.Message));
                    node.Warning(warningMessage);
                }
            }
        }
Exemple #2
0
 internal IDictionary <Guid, List <RuntimeWarning> > GetRuntimeWarnings()
 {
     return(liveRunnerServices.GetRuntimeWarnings());
 }