public void EditStruct(MemStructObject o, IWin32Window f)
        {
            switch (o.Type)
            {
            case MemStructObject.ObjectType.XYREGION:
                IXYFormManager xyManager = new XYFormManager((XYRegion)o);
                xyManager.Attach(this);

                XYRegionForm xyForm = new XYRegionForm(sharedManager, xyManager, "PuzzLearn - Edit XY Region", (XYRegion)o);
                xyForm.ShowDialog(f);

                break;

            case MemStructObject.ObjectType.REGION:
                RegionFormManager rm = new RegionFormManager(sharedManager, (AddressRegion)(o));
                rm.Attach(this);

                RegionForm rf = new RegionForm(sharedManager, rm, "PuzzLearn - Edit Region", (AddressRegion)(o));
                rf.ShowDialog(f);

                break;

            case MemStructObject.ObjectType.OBJECT:
                ObjectFormManager om = new ObjectFormManager(sharedManager, (ObjectBlock)o);
                om.Attach(this);

                ObjectForm of = new ObjectForm(sharedManager, om, "PuzzLearn - Edit Object", (ObjectBlock)o);
                of.ShowDialog(f);

                break;
            }
        }
        public void AddXYRegion(IWin32Window f)
        {
            IXYFormManager xyManager = new XYFormManager();

            xyManager.Attach(this);

            XYRegionForm xyForm = new XYRegionForm(sharedManager, xyManager, "PuzzLearn - Add XY Region");

            xyForm.ShowDialog(f);
        }