public void DeleteApplication(List <int> applicationIds)
        {
            ApplicationsDAO lApplicationsDAO = new ApplicationsDAO();

            // check if any of the applications are used as an alias - stop if true
            List <string> aliasedApps = lApplicationsDAO.CheckApplicationIsAnAlias(applicationIds);

            if (aliasedApps.Count > 0)
            {
                MessageBox.Show(
                    "The following applications have other applications aliased to them. Please remove the aliases " +
                    "before deleting." + Environment.NewLine + Environment.NewLine + string.Join("\n", aliasedApps.ToArray()),
                    "Delete Application", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            lApplicationsDAO.DeleteApplications(applicationIds);
            WorkItem.ExplorerView.RefreshView();
            WorkItem.TabView.RefreshView();
        }