示例#1
0
        private void AddItems()
        {
            var dialog = new MpLoadTransportersWindow(map, transporters);

            dialog.CalculateAndRecacheTransferables();
            transferables = dialog.transferables;
        }
示例#2
0
        public override void DoWindowContents(Rect inRect)
        {
            drawing = this;

            try
            {
                var session = Session;

                if (session == null)
                {
                    Close();
                }
                else if (session.uiDirty)
                {
                    CountToTransferChanged();
                    session.uiDirty = false;
                }

                base.DoWindowContents(inRect);
            }
            finally
            {
                drawing = null;
            }
        }