Example #1
0
        private void cmsDbTableItem_Click(object sender, EventArgs eventArgs)
        {
            var tripItem    = sender as ToolStripItem;
            var currentNode = tvDatabase.SelectedNode;

            if (tripItem == null)
            {
                return;
            }
            switch (tripItem.Text)
            {
            case Constants.CONTEXT_MENU_TABLE_GENERATE_KD_CODES:
                var table = currentNode.Tag as DbTable;
                if (table == null)
                {
                    break;
                }
                table.ColumnList = DataAccess.GetDbColumnList(ConnBuilder, table.Name);
                var form = new KdCodeForm(table);
                form.Show();
                break;
            }
        }
Example #2
0
        private void cmsDbTableItem_Click(object sender, EventArgs eventArgs)
        {
            var tripItem = sender as ToolStripItem;
            var currentNode = tvDatabase.SelectedNode;
            if (tripItem == null) return;
            switch (tripItem.Text)
            {
                case Constants.CONTEXT_MENU_TABLE_GENERATE_KD_CODES:
                    var table = currentNode.Tag as DbTable;
                    if (table == null) break;
                    table.ColumnList = DataAccess.GetDbColumnList(ConnBuilder, table.Name);
                    var form = new KdCodeForm(table);
                    form.Show();
                    break;

            }
        }