private void AddItems() { var dialog = new MpLoadTransportersWindow(map, transporters); dialog.CalculateAndRecacheTransferables(); transferables = dialog.transferables; }
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; } }