Beispiel #1
0
        private void DatabaseSchemaTree_OnKeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Delete:
                _controller.DeleteSelectedContainerItems();
                break;

            case Key.Insert:
                _controller.InsertDefaultContainerItem();
                break;
            }
        }
        private void treeDatabaseSchema_KeyDown(object sender, KeyEventArgs e)
        {
            if (ContainerViewReadOnly)
            {
                return;
            }

            switch (e.KeyCode)
            {
            case Keys.Delete:
                tsbMetadataDelete_Click();
                break;

            case Keys.Insert:
                _controller.InsertDefaultContainerItem();
                break;
            }
        }