Beispiel #1
0
        private void a(object obj, NodeLabelEditEventArgs nodeLabelEditEventArgs)
        {
            nodeLabelEditEventArgs.CancelEdit = true;
            if (nodeLabelEditEventArgs.Node == null)
            {
                return;
            }
            if (string.IsNullOrEmpty(nodeLabelEditEventArgs.Label))
            {
                return;
            }
            o1 o = (o1)nodeLabelEditEventArgs.Node.Tag;

            if (o == null)
            {
                return;
            }
            string text = o1.b(nodeLabelEditEventArgs.Label);

            if (string.IsNullOrEmpty(text))
            {
                return;
            }
            if (text == o.b())
            {
                return;
            }
            bool flag = false;
            q1   q    = q1.A();

            if (o is h2)
            {
                R1 r = q.A((h2)o);
                flag = r.a(text);
            }
            else
            {
                if (o is p1)
                {
                    p1 p  = (p1)o;
                    R1 r2 = q.A(q.A(p));
                    flag = r2.a(p, text);
                }
            }
            if (!flag)
            {
                string text2 = "Der Name '" + text + "' ist unzulässig oder bereits vergeben";
                MessageBox.Show(this, text2, j1.a(), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Beispiel #2
0
 private void B(object obj, MouseEventArgs mouseEventArgs)
 {
     this.a(null, null);
     try
     {
         if (this.A != null)
         {
             if (mouseEventArgs != null)
             {
                 this.a = this.A.GetNodeAt(mouseEventArgs.Location);
             }
             h2 h = this.A(this.a, true);
             p1 p = this.A(this.a, true);
             if (h == null)
             {
                 h = this.A(p);
             }
             if (h != null && !h.F() && p != this.A)
             {
                 if (this.b || h != this.A)
                 {
                     r.A();
                     byte[] array = null;
                     if (r.A(this.A, this.A, ref array))
                     {
                         int num = h.E(p) + 1;
                         R.A(h, array, num);
                     }
                 }
                 else
                 {
                     int num2 = this.A.E(p) + 1;
                     q1  q    = q1.A();
                     q.A(this.A).A(this.A, num2);
                 }
             }
         }
     }
     finally
     {
         this.B(null, null);
         this.B = false;
         if (this.B != null)
         {
             this.A(this.B);
             this.B = null;
         }
     }
 }
Beispiel #3
0
        public static void A(h2 h, p1 p, bool flag)
        {
            string       arg          = flag ? "ausschneiden" : "löschen";
            string       text         = string.Format("Möchten Sie das Diagramm '{0}' wirklich {1}?", p.b(), arg);
            DialogResult dialogResult = MessageBox.Show(text, "Diagramm ausschneiden", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);

            if (dialogResult == DialogResult.OK)
            {
                q1 q = q1.A();
                if (flag)
                {
                    r.a(h, p);
                }
                q.A(h).a(p);
            }
        }
Beispiel #4
0
 public static void A(h2 h, byte[] array, int num)
 {
     if (array != null)
     {
         p1 p = Q1.A(array);
         if (p != null)
         {
             if (h.E().B(p.b()))
             {
                 p.b(h.E().b(p.b()));
             }
             p.a(-1);
             q1 q = q1.A();
             if (q.A(h).A(p, ref num, null))
             {
                 b2.A().A(p);
             }
         }
     }
 }