예제 #1
0
        private void tvConnections_AfterLabelEdit(object sender, NodeLabelEditEventArgs e)
        {
            try
            {
                cMenTreeDelete.ShortcutKeys = Keys.Delete;

                ConnectionTree.FinishRenameSelectedNode(e.Label);
                Windows.configForm.pGrid_SelectedObjectChanged();
                ShowHideTreeContextMenuItems(e.Node);
                Runtime.SaveConnectionsBG();
            }
            catch (Exception ex)
            {
                Runtime.MessageCollector.AddExceptionStackTrace("tvConnections_AfterLabelEdit (UI.Window.ConnectionTreeWindow) failed", ex);
            }
        }
예제 #2
0
        private void tvConnections_AfterLabelEdit(object sender, NodeLabelEditEventArgs e)
        {
            try
            {
                cMenTreeDelete.ShortcutKeys = Keys.Delete;

                ConnectionTree.FinishRenameSelectedNode(e.Label);
                Windows.configForm.pGrid_SelectedObjectChanged();
                ShowHideTreeContextMenuItems(e.Node);
                Runtime.SaveConnectionsBG();
            }
            catch (Exception ex)
            {
                Runtime.MessageCollector.AddMessage(MessageClass.ErrorMsg, "tvConnections_AfterLabelEdit (UI.Window.ConnectionTreeWindow) failed" + Environment.NewLine + ex.Message, true);
            }
        }