Пример #1
0
        /// <summary>
        /// 批量生成
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 批量生成ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode node = tview.SelectedNode;

            Connection conModel = list.Find(delegate(Connection con) { return(con.ID.ToString().Equals(node.Parent.Tag.ToString())); });

            BatchForm bf = new BatchForm();

            bf.DatabaseName    = node.Text;
            bf.ConnectionModel = conModel;
            bf.ShowDialog();
        }
Пример #2
0
        /// <summary>
        /// 批量生成
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 批量生成ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode node = tview.SelectedNode;

            Model.Connection conModel = list.Find(delegate(Model.Connection con) { return con.ID.ToString().Equals(node.Parent.Tag.ToString()); });

            BatchForm bf = new BatchForm();
            bf.DatabaseName = node.Text;
            bf.ConnectionModel = conModel;
            bf.ShowDialog();

        }