示例#1
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();
        }
示例#2
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();
        }
示例#3
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());
        }
示例#4
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);
                }
            }
        }
示例#5
0
        public bool A(e2 e, H2 h, Q1 q, string text)
        {
            Q1 q2 = e.L();

            q2.A(h);
            H2 h2 = h.A();
            E1 e2 = this.A.A(this.A, text);

            try
            {
                if (!this.A(e, h, q.b(), text))
                {
                    throw new InvalidOperationException();
                }
                int num = -1;
                if (!this.A(q, ref num, h2))
                {
                    throw new InvalidOperationException();
                }
                this.A.A(e2);
            }
            catch (Exception ex)
            {
                this.A.a(e2);
                e.C();
                n1.A(ex);
            }
            return(true);
        }
示例#6
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);
            }
        }
示例#7
0
 private new void A(e2 e, Point point)
 {
     if (this.A)
     {
         e.L().A();
     }
     e2.L(e, point);
 }
示例#8
0
        private void A(object obj, EventArgs eventArgs)
        {
            e2 e = this.A as e2;

            if (e != null)
            {
                u.A(this, e.RectangleToScreen(e.L(this.A.E())));
            }
        }
示例#9
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();
                }
            }
            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(e.L(), f);
                flag = true;
            }
            catch (Exception ex2)
            {
                g.a();
                e.C();
                n1.A(ex2);
            }
            if (flag)
            {
                flag = this.A(e, g);
            }
            return(flag);
        }
示例#10
0
        private void a(s1 s)
        {
            this.A.A(s);
            e2 e = s as e2;

            if (e != null)
            {
                e.L(this.A().E());
            }
        }
示例#11
0
 public void A(h2 h, e2 e)
 {
     this.A = h;
     this.A = e;
     if (e.L().J())
     {
         this.d();
         return;
     }
     this.D();
 }
示例#12
0
 public virtual void C(MouseEventArgs mouseEventArgs)
 {
     if (this.A != null && this.A.Control)
     {
         int num     = 120;
         int num2    = 5;
         e2  expr_20 = this.A;
         expr_20.L(expr_20.L() + mouseEventArgs.Delta * num2 / num);
         this.A.C();
         return;
     }
     if (this.A != null && this.A.Shift)
     {
         this.A.AutoScrollPosition = new Point(-mouseEventArgs.Delta / 2 - this.A.AutoScrollPosition.X, -this.A.AutoScrollPosition.Y);
         this.A.C();
         return;
     }
     this.A.AutoScrollPosition = new Point(-this.A.AutoScrollPosition.X, -mouseEventArgs.Delta / 2 - this.A.AutoScrollPosition.Y);
     this.A.C();
 }
示例#13
0
 private bool A(e2 e)
 {
     if (e.L().A().A())
     {
         string text = "Die Größe des Diagrammrasters ist auf {0}x{1} beschränkt.\n";
         text += "Stellen Sie umfangreiche Abläufe besser\n";
         text += "durch mehrere kleine Teildiagramme da.";
         text  = string.Format(text, k1.a.Width, k1.a.Height);
         v.A(e, text);
         return(true);
     }
     return(false);
 }
示例#14
0
 public void A(e2 e, D.A a)
 {
     D.A a2 = a;
     if (K1.A().A().SmartConnectionDClick)
     {
         a2 = Q1.A(a);
         if (a2 != null && a2 != a)
         {
             e.L().A(a2);
         }
     }
     this.a(e, a2);
 }
示例#15
0
 public void A(h2 h, e2 e, d.a a)
 {
     this.A = h;
     this.A = e;
     this.A = a;
     if (e.L().J())
     {
         this.d();
         return;
     }
     this.D();
     this.A.A(h);
     foreach (Type current in this.A.Keys)
     {
         x x = this.A[current];
         x.A(a.GetType() != (Type)x.A());
     }
 }
示例#16
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);
            }
        }
示例#17
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);
        }
示例#18
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());
                }
            }
        }
示例#19
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);
        }
示例#20
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);
            }
        }
示例#21
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);
        }