/// <summary> /// Load all warnings from KML tree. Tree needs to be loaded first. /// </summary> public void AfterTreeLoad() { WarningsList.Items.Clear(); foreach (Syntax.Message msg in Syntax.Messages) { GuiWarningsNode node = new GuiWarningsNode(msg); node.MouseDoubleClick += WarningsNode_MouseDoubleClick; WarningsList.Items.Add(node); } }
/// <summary> /// Load all warnings from KML tree. Tree needs to be loaded first. /// </summary> public void AfterTreeLoad() { WarningsList.Items.Clear(); foreach (Syntax.Message msg in Syntax.Messages) { GuiWarningsNode node = new GuiWarningsNode(msg); node.MouseDoubleClick += WarningsNode_MouseDoubleClick; WarningsList.Items.Add(node); } // All current messages are shown in the list, // so they are handled and can be cleared from the list. // Future messages will be shown in a DlgMessage. Syntax.Messages.Clear(); }