Esempio n. 1
0
        public void A(h2 h, e2 e)
        {
            this.A = h;
            this.A = e;
            this.D();
            bool flag = e != null;

            this.A.A(flag && e.K());
            this.A.a(flag);
            this.B.a(flag && !e.l() && !e.L().J());
            this.a.a(flag && e.l() && !e.L().J());
            this.b.a(flag && !z1.A());
            this.C.a(flag && z1.A());
        }
Esempio n. 2
0
        private static void n()
        {
            e2 e = (e2)e2.A.Tag;
            h2 h = e.L();

            e.l(e.L());
            if (e.L().A())
            {
                S.A().A(h, e, false);
                r.A().A(h, e.L());
                s.A().A(h, e.L());
                T.A().A(h, e);
                return;
            }
            if (e.L().a() && (e.L().A() is global::b.b || e.L().A() is global::b.a))
            {
                S.A().d();
                r.A().A(h, e.L());
                s.A().A(h, e.L());
                T.A().d();
                return;
            }
            S.A().A(h, e, false);
            r.A().d();
            s.A().d();
            T.A().d();
        }
Esempio n. 3
0
 public Z(e2 e, Point point) : base(e)
 {
     if (e.A().J())
     {
         throw new l1();
     }
     e.Cursor = X.A().B();
     base.F(point);
     this.A = e.l(this.A, this.B);
 }
Esempio n. 4
0
 public void a(h2 h)
 {
     foreach (TabPage tabPage in this.A.TabPages)
     {
         e2 e = this.A(tabPage) as e2;
         if (e != null)
         {
             e.M(!h.F());
             e.l();
         }
     }
 }
Esempio n. 5
0
        private static void L(object obj, CancelEventArgs cancelEventArgs)
        {
            e2 e = e2.A.Tag as e2;

            if (e != null)
            {
                global::c.a a = e.L().A();
                H2          h = e.L().A();
                e.l();
                if (h != null)
                {
                    e.L().A(h);
                    return;
                }
                e.L().A(a);
            }
        }
Esempio n. 6
0
        public static Bitmap L(e2 e, Rectangle rectangle)
        {
            if (rectangle.Width <= 0 || rectangle.Height <= 0)
            {
                return(null);
            }
            Bitmap bitmap = new Bitmap(rectangle.Width, rectangle.Height);
            Matrix matrix = new Matrix();
            float  num    = e.J();

            matrix.Translate((float)(e.AutoScrollPosition.X - rectangle.X), (float)(e.AutoScrollPosition.Y - rectangle.Y));
            matrix.Scale(num, num);
            Graphics graphics = Graphics.FromImage(bitmap);

            graphics.Transform = matrix;
            B1 b = e.A().G(e, graphics, a1.Clip, true);

            b.A().SetClip(e.l(rectangle));
            e.L(b);
            return(bitmap);
        }
Esempio n. 7
0
        public void A(e2 e, d.a a)
        {
            d1   d    = null;
            bool flag = a is global::b.b || a is global::b.a;

            if (flag)
            {
                d = new f1(this.A, e.A(), "Diagrammname");
            }
            else
            {
                d = new I1(this.A, e, e.A(), a, "Symbol bearbeiten");
            }
            bool flag2 = false;
            bool flag3 = false;

            try
            {
                flag3 = e.L(a, out flag2);
            }
            catch (Exception ex)
            {
                d.a();
                e.C();
                n1.A(ex);
            }
            if (flag3)
            {
                bool flag4 = this.A.A(d);
                if (flag4)
                {
                    e.d(a);
                }
                if (flag2 && a is d.B)
                {
                    e.l();
                    this.A(a.c());
                }
            }
        }
Esempio n. 8
0
        public bool A(e2 e, Type type, F f)
        {
            byte[] array = this.A(e.A());
            string text  = (f.a() != null) ? "Symbol umwandeln" : "Symbol einfügen";
            g1     g     = new g1(this.A, e, array, text);
            bool   flag  = false;
            bool   flag2 = false;

            d.a a = null;
            try
            {
                d.a a2 = f.a();
                a = e.L().A(type, f);
                string text2 = (a is d.A) ? "" : a.c();
                if (a2 != null && a2.d())
                {
                    text2 = Regex.Replace("" + a2.c(), "(\\s){1,}", " ").Trim();
                    if (a is D.b || a is global::C.c)
                    {
                        Type   type2 = (a is D.b) ? typeof(global::C.c) : typeof(D.b);
                        string text3 = e.L().A(type2).Split(new char[]
                        {
                            ' '
                        })[0];
                        string newValue = e.L().A(a.GetType()).Split(new char[]
                        {
                            ' '
                        })[0];
                        if (text2.StartsWith(text3))
                        {
                            text2 = text2.Replace(text3, newValue);
                        }
                    }
                    if (a is d.B && text2.Length > 64)
                    {
                        text2 = text2.Substring(0, 64);
                    }
                }
                if (a.d())
                {
                    e.L().A(a);
                    if (!(a is d.A))
                    {
                        a.D(text2);
                    }
                    if (!e.L(a, text2, out flag, false))
                    {
                        throw new L1();
                    }
                }
                flag2 = true;
            }
            catch (Exception ex)
            {
                g.a();
                if (!(ex is L1))
                {
                    n1.A(ex);
                }
            }
            if (flag2)
            {
                flag2 = this.A(e, g);
            }
            if (flag2 && flag && a is d.B)
            {
                e.l();
                this.A(a.c());
            }
            e.C();
            return(flag2);
        }