Ejemplo n.º 1
0
        private void ResourceCreation_Load(object sender, EventArgs e)
        {
            instance = this;
            var polygonManagerWrap    = Activator.CreateInstance(null, "AADS.ObjectsManager.PolygonManager");
            var collectionManagerWrap = Activator.CreateInstance(null, "AADS.ObjectsManager.PolygonCollectionManager");

            polygonManager    = (ObjectsManager.PolygonManager)polygonManagerWrap.Unwrap();
            collectionManager = (ObjectsManager.PolygonCollectionManager)collectionManagerWrap.Unwrap();
            //this.panelEditDel.Visible = false;
        }
Ejemplo n.º 2
0
        private void RestrictedAreaCreation_Load(object sender, EventArgs e)
        {
            Instance     = this;
            instanceMain = MainForm.GetInstance();
            //create instances of polygon managers
            var PolygonCollectionManagerWrap = Activator.CreateInstance(null, "AADS.ObjectsManager.PolygonCollectionManager");
            var PolygonManagerWrap           = Activator.CreateInstance(null, "AADS.ObjectsManager.PolygonManager");

            PolygonCollectionManager = (ObjectsManager.PolygonCollectionManager)PolygonCollectionManagerWrap.Unwrap();
            PolygonManager           = (ObjectsManager.PolygonManager)PolygonManagerWrap.Unwrap();

            this.panelEditDel.Visible = false;
            this.btnConfirm.Visible   = true;
            this.btnConfirm.BringToFront();
        }