コード例 #1
0
        public SecureTradeInfo(SecureTrade owner, Mobile m, SecureTradeContainer c)
        {
            Owner     = owner;
            Mobile    = m;
            Container = c;

            Mobile.AddItem(Container);

            VirtualCheck = new VirtualCheck(0, 0);
            Container.DropItem(VirtualCheck);
        }
コード例 #2
0
            public void Close()
            {
                User.CloseGump(GetType());

                if (Check != null && !Check.Deleted)
                {
                    Check.UpdateTrade(User);
                }
                else
                {
                    Check = null;
                }
            }
コード例 #3
0
        public void Dispose()
        {
            VirtualCheck.Delete();
            VirtualCheck = null;

            Container.Delete();
            Container = null;

            Mobile = null;
            Owner  = null;

            IsDisposed = true;
        }
コード例 #4
0
            public EditGump(Mobile user, VirtualCheck check)
                : base(50, 50)
            {
                User  = user;
                Check = check;

                _Plat = Check.Plat;
                _Gold = Check.Gold;

                Closable   = true;
                Disposable = true;
                Dragable   = true;
                Resizable  = false;

                User.CloseGump(GetType());

                CompileLayout();
            }