private async void DownloadAndOpenProject(string projectId, string version)
        {
            try
            {
                string packageName = $"{projectId}.{version}";
                Cursor.Current = Cursors.WaitCursor;
                lblError.Text  = $"Downloading {packageName}";

                if (lblGalleryProjects.Text == "Gallery Automations")
                {
                    await NugetPackageManager.DownloadPackage(projectId, version, _projectLocation, _projectName, _galleryAutomationsSourceUrl);
                }
                else if (lblGalleryProjects.Text == "Gallery Samples")
                {
                    await NugetPackageManager.DownloadPackage(projectId, version, _projectLocation, _projectName, _gallerySamplesSourceUrl);
                }
                else if (lblGalleryProjects.Text == "Gallery Templates")
                {
                    await NugetPackageManager.DownloadPackage(projectId, version, _projectLocation, _projectName, _galleryTemplatesSourceUrl);
                }

                lblError.Text = string.Empty;
                DialogResult  = DialogResult.OK;
            }
            catch (Exception ex)
            {
                lblError.Text = "Error: " + ex.Message;
            }
        }