Esempio n. 1
0
 // TODO: Refactor with respect of Item.Action generalization
 void InvokeDefaultOnItem(Item item)
 {
     if (item.Entity.IsTable)
     {
         StudioController.SelectFromTable(SelectedServer, item.Entity);
     }
     else if (item.Entity.IsProcedure)
     {
         StudioController.ModifyProcedure(SelectedServer, item.Entity);
     }
     else if (item.Entity.IsFunction)
     {
         StudioController.ModifyFunction(SelectedServer, item.Entity);
     }
     else if (item.Entity.IsView)
     {
         StudioController.SelectFromView(SelectedServer, item.Entity);
     }
 }