Esempio n. 1
0
        public void a(e2 e, D.A a)
        {
            byte[] array = this.A(e.A());
            d1     d     = new g1(this.A, e, array, "Verbindung bearbeiten");
            bool   flag  = false;

            try
            {
                flag = e.L().A(e, a);
            }
            catch (Exception ex)
            {
                d.a();
                e.C();
                n1.A(ex);
            }
            if (flag)
            {
                bool flag2 = this.A.A(d);
                if (flag2)
                {
                    e.d(a);
                }
            }
        }
Esempio n. 2
0
 public J(e2 e) : base(e)
 {
     if (!e.A().J())
     {
         throw new l1();
     }
 }
Esempio n. 3
0
        public j(e2 e, MouseEventArgs mouseEventArgs, KeyEventArgs keyEventArgs, bool flag, bool flag2) : base(e, keyEventArgs)
        {
            this.A = e.L().A();
            this.A = this.A.A();
            this.A = flag;
            this.a = flag2;
            if (e.A().J())
            {
                throw new l1();
            }
            if (this.A == null)
            {
                throw new l1();
            }
            if (this.A.A() == null)
            {
                throw new l1();
            }
            if (mouseEventArgs == null)
            {
                throw new l1();
            }
            this.A = e.L(this.A.A());
            Bitmap bitmap = e2.L(e, this.A);

            this.A = new I(bitmap, 0.5f);
            this.c(mouseEventArgs);
            this.B();
        }
Esempio n. 4
0
 public A1(e2 e, bool flag) : base(e)
 {
     this.A = flag;
     if (e.A().J() != this.A)
     {
         throw new l1();
     }
     this.a = !K1.A().A().DoubleClickAction;
 }
Esempio n. 5
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. 6
0
 public z(e2 e, Type type) : base(e)
 {
     if (e.A().J())
     {
         throw new l1();
     }
     this.A   = type;
     this.A   = X.A().A(type);
     this.a   = X.A().a(type);
     e.Cursor = this.A;
 }
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 y(H2 h, e2 e, string text) : base(e)
 {
     if (e.A().J())
     {
         throw new l1();
     }
     this.A = h;
     if (h == null)
     {
         throw new l1();
     }
     this.A   = text;
     this.A   = X.A().a();
     e.Cursor = this.A;
 }
Esempio n. 9
0
        public g1 A(e2 e)
        {
            g1 result;

            try
            {
                byte[] array = this.A(e.A());
                result = new g1(this.A, e, array, "Symbol verschieben");
            }
            catch (Exception ex)
            {
                n1.A(ex);
                throw ex;
            }
            return(result);
        }
Esempio n. 10
0
        public bool A(e2 e, H2 h, F f, string text)
        {
            try
            {
                if (h == null)
                {
                    throw new l1();
                }
                if (h.a() == 0)
                {
                    throw new l1();
                }
                if (h.A() == null)
                {
                    throw new l1();
                }
                if (!h.c())
                {
                    throw new l1();
                }
            }
            catch (Exception ex)
            {
                n1.A(ex);
                return(false);
            }
            byte[] array = this.A(e.A());
            g1     g     = new g1(this.A, e, array, text);
            bool   flag  = false;

            try
            {
                e.L().A(h, f);
                flag = true;
            }
            catch (Exception ex2)
            {
                g.a();
                e.C();
                n1.A(ex2);
            }
            if (flag)
            {
                flag = this.A(e, g);
            }
            return(flag);
        }
Esempio n. 11
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. 12
0
        public void A(e2 e, d.a a, G2 g)
        {
            byte[] array = this.A(e.A());
            g1     g2    = new g1(this.A, e, array, "Verbindung einfügen");
            bool   flag  = false;

            try
            {
                flag = e.L().A(a, g, false);
            }
            catch (Exception ex)
            {
                g2.a();
                e.C();
                n1.A(ex);
            }
            if (flag)
            {
                flag = this.A.A(g2);
            }
        }
Esempio n. 13
0
        public bool A(e2 e, H2 h, string text, string text2)
        {
            byte[] array = this.A(e.A());
            g1     g     = new g1(this.A, e, array, text2);
            bool   flag  = false;

            try
            {
                e.L().A(h, text);
                flag = true;
            }
            catch (Exception ex)
            {
                g.a();
                n1.A(ex);
            }
            if (flag)
            {
                flag = this.A.A(g);
            }
            e.C();
            return(flag);
        }
Esempio n. 14
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);
        }
Esempio n. 15
0
        public void A(h2 h, e2 e, bool flag)
        {
            this.A = h;
            if (h == null || h.F())
            {
                this.d();
                return;
            }
            this.A = e;
            if (e == null)
            {
                throw new l1();
            }
            m   m   = m.A();
            int num = 0;

            if (m.A(typeof(H2)) && !H2.A(m, out num))
            {
                throw new l1();
            }
            this.D();
            R1 r = q1.A().A(h);
            i1 i = r.A();
            k  k = e.L();

            this.A.A(i.A() && (k.A() || flag));
            this.a.A(i.a() && (k.A() || flag));
            this.c.A(k.a() && (k.C() || e.L(k.A())));
            this.D.A(k.A() == null);
            this.d.A(k.A() != null && this.c.A() && Q1.A(k.A().GetType()));
            this.E.A(k.E() && k.e());
            this.e.A(k.E());
            this.F.A(m.A().A(typeof(H2)));
            this.f.A(k.e());
            this.C.A(k.f());
            bool flag2 = false;

            if (k.a() && k.b())
            {
                this.E(new object[]
                {
                    "Symbol"
                });
            }
            else
            {
                if (k.a() && k.C())
                {
                    flag2 = true;
                    this.E(new object[]
                    {
                        "Verbindung"
                    });
                    this.c.A(new object[]
                    {
                        "Verbindungtext"
                    });
                    this.E.A(false);
                    this.e.A(false);
                }
                else
                {
                    this.E(new object[]
                    {
                        "Auswahl"
                    });
                }
            }
            if (num == 1)
            {
                this.F.A(new object[]
                {
                    "Symbol"
                });
            }
            else
            {
                if (num > 1)
                {
                    this.F.A(new object[]
                    {
                        "Auswahl"
                    });
                }
            }
            this.A.A(new object[]
            {
                i.A() ? (": " + i.A()) : ""
            });
            this.a.A(new object[]
            {
                i.a() ? (": " + i.a()) : ""
            });
            this.B.A(false);
            this.b.A(false);
            bool flag3 = false;

            if (k.a() && k.A() is d.B)
            {
                d.a a = k.A();
                this.B.A(new object[]
                {
                    a.c()
                });
                this.b.A(new object[]
                {
                    a.c()
                });
                p1 p = e.L(a, false);
                if (p != null)
                {
                    if (p != e.A())
                    {
                        this.b.A(true);
                        this.b.A(a);
                        flag3 = true;
                    }
                }
                else
                {
                    this.B.A(true);
                    this.B.A(a.c());
                }
            }
            if (this.d.A())
            {
                U.A().A(h, e, k.A());
            }
            this.b();
            if (!flag3)
            {
                this.b.a(false);
            }
            if (flag)
            {
                this.A.a(true);
                this.a.a(true);
            }
            if (this.D.A() && this.D.a())
            {
                t.A().A(h, e);
            }
            else
            {
                t.A().d();
            }
            if (this.E.A() || this.e.A() || this.F.A() || this.f.A())
            {
                this.E.a(!flag2);
                this.e.a(!flag2);
                this.F.a(true);
                this.f.a(true);
            }
        }