コード例 #1
0
ファイル: TimeListEntryOpts.cs プロジェクト: LordEnigma/UO
        protected override void CompileOptions(MenuGumpOptions list)
        {
            base.CompileOptions(list);

            list.PrependEntry(
                new ListGumpEntry(
                    "Delete",
                    button =>
            {
                if (UseConfirmDialog)
                {
                    Send(
                        new ConfirmDialogGump(
                            User,
                            Refresh(),
                            title: "Delete Time?",
                            html:
                            "All data associated with this time will be deleted.\nThis action can not be reversed!\nDo you want to continue?",
                            onAccept: OnConfirmDelete));
                }
                else
                {
                    OnConfirmDelete(button);
                }
            },
                    HighlightHue));
        }
コード例 #2
0
		protected override void CompileOptions(MenuGumpOptions list)
		{
			base.CompileOptions(list);

			list.PrependEntry(
				new ListGumpEntry(
					"Delete",
					button =>
					{
						if (UseConfirmDialog)
						{
							Send(
								new ConfirmDialogGump(
									User,
									Refresh(),
									title: "Delete Time?",
									html:
										"All data associated with this time will be deleted.\nThis action can not be reversed!\nDo you want to continue?",
									onAccept: OnConfirmDelete));
						}
						else
						{
							OnConfirmDelete(button);
						}
					},
					HighlightHue));
		}
コード例 #3
0
        protected override void CompileOptions(MenuGumpOptions list)
        {
            base.CompileOptions(list);

            list.PrependEntry(
                "Delete",
                button =>
            {
                if (UseConfirmDialog)
                {
                    new ConfirmDialogGump(User, Refresh())
                    {
                        Title = "Delete Time?",
                        Html  = "All data associated with this time will be deleted.\n" +
                                "This action can not be reversed!\nDo you want to continue?",
                        AcceptHandler = OnConfirmDelete
                    }.Send();
                }
                else
                {
                    OnConfirmDelete(button);
                }
            },
                HighlightHue);
        }