示例#1
0
        protected void OnButtonNewTagClicked(object sender, EventArgs e)
        {
            using (var dlg = new GitSelectRevisionDialog(repo)) {
                if (dlg.Run() != Xwt.Command.Ok)
                {
                    return;
                }

                repo.AddTag(dlg.TagName, dlg.SelectedRevision, dlg.TagMessage);
                FillTags();
            }
        }
示例#2
0
        protected void OnButtonNewTagClicked(object sender, EventArgs e)
        {
            using (var dlg = new GitSelectRevisionDialog(repo)) {
                Xwt.WindowFrame parent = Xwt.Toolkit.CurrentEngine.WrapWindow(this);
                if (dlg.Run(parent) != Xwt.Command.Ok)
                {
                    return;
                }

                repo.AddTag(dlg.TagName, dlg.SelectedRevision, dlg.TagMessage);
                FillTags();
            }
        }
示例#3
0
        protected void OnButtonNewTagClicked(object sender, EventArgs e)
        {
            // Create dialog with revisions of current branch.
            // Select revision to tag at.
            // Create tag.

            using (var dlg = new GitSelectRevisionDialog(repo)) {
                if (dlg.Run() != Xwt.Command.Ok)
                {
                    return;
                }

                repo.AddTag(dlg.TagName, dlg.SelectedRevision, dlg.TagMessage);
                FillTags();
            }
        }
        protected async void OnButtonNewTagClicked(object sender, EventArgs e)
        {
            using (var dlg = new GitSelectRevisionDialog(repo)) {
                Xwt.WindowFrame parent = Xwt.Toolkit.CurrentEngine.WrapWindow(this);
                if (dlg.Run(parent) != Xwt.Command.Ok)
                {
                    return;
                }

                var token = destroyTokenSource.Token;
                await repo.AddTagAsync(dlg.TagName, dlg.SelectedRevision, dlg.TagMessage, token);

                if (!token.IsCancellationRequested)
                {
                    FillTags();
                }
            }
        }
		protected void OnButtonNewTagClicked (object sender, EventArgs e)
		{
			using (var dlg = new GitSelectRevisionDialog (repo)) {
				if (dlg.Run () != Xwt.Command.Ok)
					return;

				repo.AddTag (dlg.TagName, dlg.SelectedRevision, dlg.TagMessage);
				FillTags ();
			}
		}
		protected void OnButtonNewTagClicked (object sender, EventArgs e)
		{
			// Create dialog with revisions of current branch.
			// Select revision to tag at.
			// Create tag.

			using (var dlg = new GitSelectRevisionDialog (repo)) {
				if (dlg.Run () != Xwt.Command.Ok)
					return;

				repo.AddTag (dlg.TagName, dlg.SelectedRevision, dlg.TagMessage);
				FillTags ();
			}
		}
		protected void OnButtonNewTagClicked (object sender, EventArgs e)
		{
			using (var dlg = new GitSelectRevisionDialog (repo)) {
				Xwt.WindowFrame parent = Xwt.Toolkit.CurrentEngine.WrapWindow (this);
				if (dlg.Run (parent) != Xwt.Command.Ok)
					return;

				repo.AddTag (dlg.TagName, dlg.SelectedRevision, dlg.TagMessage);
				FillTags ();
			}
		}