Exemple #1
0
        private void SetVersionToAllSelectedNodes(object sender, EventArgs e)
        {
            if (!Multiselect)
            {
                ShowWarning("Multiselect mode has to be enabled");
                return;
            }

            VersionDialog dialog = new VersionDialog();

            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            _listPoms.BeginUpdate();
            _treePoms.BeginUpdate();

            foreach (var prjView in _views.AllViews.Where(v => v.Checked))
            {
                prjView.Version = dialog.Version;
            }

            _listPoms.EndUpdate();
            _treePoms.EndUpdate();

            RefreshPropertyGrid();
            UpdateAllProjectViews();
        }
Exemple #2
0
        private void ReleaseAllSnapshotsOnClick(object sender, EventArgs e)
        {
            VersionDialog dialog = new VersionDialog();

            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            _listPoms.BeginUpdate();
            _treePoms.BeginUpdate();

            try
            {
                var action = new BulkSwitchToReleaseAction(_views, ProjectsRepo, dialog.Version);
                action.Execute();
            }
            finally
            {
                _listPoms.EndUpdate();
                _treePoms.EndUpdate();
            }

            RefreshPropertyGrid();
            UpdateAllProjectViews();
        }
Exemple #3
0
 private void ToolStripMenuItemTabRenameClick(object sender, EventArgs e)
 {
     using (VersionDialog dialog = new VersionDialog())
     {
         var selectedTab = tabControlCommon.SelectedTab;
         var profile     = selectedTab.Tag as Profile;
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             if (profile != null)
             {
                 profile.Id       = dialog.Version;
                 selectedTab.Text = dialog.Version;
             }
         }
     }
 }