private void method_0()
        {
            IPoint point;

            if (CartoLicenseProviderCheck.Check())
            {
                this.ilist_0.Clear();
                IEnvelope envelopeClass = new Envelope() as IEnvelope;
                this.ienumElement_0.Reset();
                for (IElement i = this.ienumElement_0.Next(); i != null; i = this.ienumElement_0.Next())
                {
                    if (this.method_6(i))
                    {
                        i.QueryBounds(this.iactiveView_0.ScreenDisplay, envelopeClass);
                        switch (this.enumAlignType_0)
                        {
                        case enumAlignType.esriTop:
                        {
                            point = this.method_2(envelopeClass);
                            break;
                        }

                        case enumAlignType.esriBottom:
                        {
                            point = this.method_3(envelopeClass);
                            break;
                        }

                        case enumAlignType.esriLeft:
                        {
                            point = this.method_4(envelopeClass);
                            break;
                        }

                        case enumAlignType.esriRight:
                        {
                            point = this.method_5(envelopeClass);
                            break;
                        }

                        default:
                        {
                            return;
                        }
                        }
                        this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGraphics, i, null);
                        (i as ITransform2D).Move(point.X, point.Y);
                        this.igraphicsContainer_0.UpdateElement(i);
                        this.iactiveView_0.PartialRefresh(esriViewDrawPhase.esriViewGraphics, i, null);
                        this.ilist_0.Add(point);
                        ElementChangeEvent.ElementPositionChange(i);
                    }
                }
            }
        }
 internal static void Init()
 {
     CartoLicenseProviderCheck.m_initOk = true;
     try
     {
         CartoLicenseProviderCheck._licenceseCheck = new CartoLicenseProviderCheck();
     }
     catch
     {
     }
 }
        public static bool Check()
        {
            return(true);

            if (!CartoLicenseProviderCheck.m_initOk)
            {
                CartoLicenseProviderCheck.Init();
            }
            if (CartoLicenseProviderCheck._licenceseCheck == null)
            {
                MessageBox.Show("无法验证制图模块的的使用许可!", "许可", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            return(CartoLicenseProviderCheck._licenceseCheck != null);
        }
 private static void old_acctor_mc()
 {
     CartoLicenseProviderCheck._licenceseCheck = null;
     CartoLicenseProviderCheck.m_initOk        = false;
 }
 static CartoLicenseProviderCheck()
 {
     CartoLicenseProviderCheck.old_acctor_mc();
 }