Ejemplo n.º 1
0
        private void scriptwithDependenciesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.ListView.SelectedItems.Count == 0)
            {
                return;
            }

            object      selectedObject   = this.ListView.SelectedItems[0].Tag;
            IScriptable scriptableObject = selectedObject as IScriptable;

            if (scriptableObject != null)
            {
                ScriptingForm frm = new ScriptingForm(this.sqlServerSelection,
                                                      (SqlSmoObject)selectedObject);
                frm.ShowDialog(this);
            }
        }
Ejemplo n.º 2
0
        private void scriptwithDependenciesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.ListView.SelectedItems.Count == 0)
            {
                return;
            }

            object selectedObject = this.ListView.SelectedItems[0].Tag;
            IScriptable scriptableObject = selectedObject as IScriptable;
            if (scriptableObject != null)
            {
                ScriptingForm frm = new ScriptingForm(this.sqlServerSelection,
                    (SqlSmoObject)selectedObject);
                frm.ShowDialog(this);
            }
        }