コード例 #1
0
        public string B(string arg)
        {
            int num = 0;

            foreach (string current in this.A.Keys)
            {
                h2 h = this.A[current] as h2;
                if (h == null || !h.e())
                {
                    string[] array = current.Split(new char[]
                    {
                        " "[0]
                    });
                    if (array.Length != 2 || array[0] != arg)
                    {
                        break;
                    }
                    try
                    {
                        num = Math.Max(num, int.Parse(array[1]));
                    }
                    catch
                    {
                    }
                }
            }
            string text;

            do
            {
                num++;
                text = arg + " " + num;
            }while (this.A.ContainsKey(text));
            return(text);
        }
コード例 #2
0
        private void A(h2 h, p1 p)
        {
            this.A = h;
            string str = h.e() ? "" : "Projekt ";

            this.Text = this.A + " " + str + h.b();
            this.A.Items.Clear();
            int startPage = 0;
            int num       = 0;

            foreach (p1 current in h.E())
            {
                if (current == p)
                {
                    startPage = num;
                }
                this.A.Items.Add(string.Concat(new object[]
                {
                    "",
                    ++num,
                    ": ",
                    current.b()
                }));
            }
            this.A.InvalidatePreview();
            this.A.StartPage = startPage;
            this.a();
        }
コード例 #3
0
ファイル: J.cs プロジェクト: hakanaku2009/svn-dump
        public override void c(MouseEventArgs mouseEventArgs)
        {
            base.D(mouseEventArgs);
            h2 h = q1.A().A(this.A.A());

            if (mouseEventArgs.Button == MouseButtons.Left && J.A != this.A.A())
            {
                string text = "";
                if (h.e())
                {
                    text += "Dieses Diagramm ist geschützt\n";
                }
                else
                {
                    text += "Dieses Diagramm ist vom Autor geschützt worden\n";
                }
                text += "und kann daher nicht bearbeitet werden.";
                v.A(this.A, text);
                J.A = this.A.L();
                return;
            }
            if (mouseEventArgs.Button == MouseButtons.Right)
            {
                this.A.l();
                e2.L(this.A, this.A.L());
            }
        }
コード例 #4
0
ファイル: B2.cs プロジェクト: hakanaku2009/svn-dump
 private void B(h2 h)
 {
     h.b(new P1 <h2> .a(this.A));
     h.e(new h2.a(this.A));
     h.E().b(new W1 <p1> .a(this.A));
     h.E().c(new W1 <p1> .a(this.a));
     h.E().d(new W1 <p1> .a(this.A));
     h.E().f(new W1 <p1> .a(this.B));
     if (h.F() != null)
     {
         this.A.A(h.F());
     }
 }
コード例 #5
0
ファイル: I2.cs プロジェクト: hakanaku2009/svn-dump
 public i2(string text, h2 h, v1 v)
 {
     this.A();
     this.Font        = d2.a().Font;
     this.A           = h;
     this.A           = v;
     this.A.MaxLength = 64;
     this.a.MaxLength = 64;
     this.A           = this.A.BackColor;
     this.A           = this.a.Text;
     this.A           = new Control[]
     {
         this.A,
         this.a
     };
     if (!string.IsNullOrEmpty(text))
     {
         this.Text = text;
     }
     this.A.Text    = h.b();
     this.a.Text    = h.E();
     this.c.Text    = h.f();
     this.D.Text    = h.E().ToString("dd.MM.yy HH:mm");
     this.E.Text    = h.e().ToString("dd.MM.yy HH:mm");
     this.A         = h.E();
     this.A.Checked = V.B(this.A, null);
     this.A.Enabled = !h.e();
     this.A.Visible = !K1.A().A().SuppressProjectProtectionSwitch;
     if (h.E())
     {
         this.A.Text = "";
         if (string.IsNullOrEmpty(this.a.Text))
         {
             this.a.Text = K1.A().A().DefaultAuthorName;
         }
         this.A.Enabled = false;
     }
 }
コード例 #6
0
ファイル: I2.cs プロジェクト: hakanaku2009/svn-dump
        private void A(p1 p, int index)
        {
            h2       h        = this.A(p);
            TreeNode treeNode = this.A[h];
            J2 <p1>  j        = new J2 <p1>(p);

            this.A.Add(p, j);
            treeNode.Nodes.Insert(index, j);
            int num = h.e() ? 6 : 2;

            j.ImageIndex         = this.A.ImageIndex + num;
            j.SelectedImageIndex = this.A.SelectedImageIndex + num;
            this.B();
        }
コード例 #7
0
        private new void A()
        {
            h2     h    = q1.A().A(this.A.A());
            string text = "";

            if (h.e())
            {
                text += "Dieses Diagramm ist geschützt\n";
            }
            else
            {
                text += "Dieses Diagramm ist vom Autor geschützt worden\n";
            }
            text += "und kann daher nicht bearbeitet werden.";
            v.A(this.A, text);
        }
コード例 #8
0
ファイル: Q.cs プロジェクト: hakanaku2009/svn-dump
        public void A(h2 h, bool flag)
        {
            this.A = h;
            bool flag2 = h.g();
            bool flag3 = flag2;

            if (!flag3)
            {
                foreach (h2 current in this.A.A())
                {
                    if (current.g())
                    {
                        flag3 = true;
                        break;
                    }
                }
            }
            this.D();
            this.A.A(h != null);
            this.a.A(flag2);
            this.B.A(h != null);
            this.b.A(flag3);
            this.C.A(h != null);
            this.c.A(this.A.A().B() > 1);
            this.D.A(h != null && this.A.a(h, true));
            this.b.a(flag && this.A.A().B() > 1);
            this.c.a(flag && this.A.A().B() > 1);
            if (h.F())
            {
                this.a.a(h.f());
                this.B.a(h.f());
                this.b.a(h.f());
                this.D.a(false);
            }
            this.C.A(new object[]
            {
                h.e() ? "Tutorial" : "Project"
            });
        }
コード例 #9
0
ファイル: I2.cs プロジェクト: hakanaku2009/svn-dump
        private void A(h2 h, int num)
        {
            J2 <h2> j = new J2 <h2>(h);

            this.A.Add(h, j);
            if (h.e())
            {
                int i;
                for (i = 0; i < this.A.Nodes.Count; i++)
                {
                    J2 <h2> j2 = this.A.Nodes[i] as J2 <h2>;
                    if (!j2.A().e())
                    {
                        break;
                    }
                }
                this.A.Nodes.Insert(i, j);
                j.ImageIndex         = this.A.ImageIndex + 4;
                j.SelectedImageIndex = this.A.SelectedImageIndex + 4;
            }
            else
            {
                this.A.Nodes.Add(j);
                j.ImageIndex         = this.A.ImageIndex;
                j.SelectedImageIndex = this.A.SelectedImageIndex;
            }
            h.E().B(new W1 <p1> .B(this.A));
            h.E().E(new W1 <p1> .a(this.a));
            int num2 = 0;

            foreach (p1 current in h.E())
            {
                this.A(current, num2++);
            }
            j.Expand();
            this.B();
        }