Exemple #1
0
 public bool AddLast(HyperEquation he)
 {
     if (!AddLastAble(he))
     {
         return(false);
     }
     if (List == null)
     {
         List = new MonoLinker <HyperEquation>(he);
     }
     else
     {
         List.Add(he);
     }
     return(true);
 }
Exemple #2
0
        private void InitPanelXi()
        {
            label1.Font = new Font(Font.Name,
                                   (float)Math.Floor(Font.Size * 4F / 3F),
                                   Font.Style, Font.Unit, Font.GdiCharSet);
            panelXi.SuspendLayout();
            UserControlXi uc = null;
            int           i  = 0;

            while (i < M)
            {
                uc = new UserControlXi {
                    Font = new Font(Font.Name, Font.Size,
                                    Font.Style, Font.Unit, Font.GdiCharSet),
                    labelName =
                    {
                        Font = new Font(Font.Name,
                                        (float)Math.Floor(Font.Size * 4F / 3F),
                                        Font.Style, Font.Unit, Font.GdiCharSet)
                    },
                    labelIndex = { Text = M + @"n+" + ++i },
                    Anchor     = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top,
                    Width      = panelXi.ClientSize.Width,
                    Top        = uc == null ? 0 : uc.Bottom
                };
                panelXi.Controls.Add(uc);
                if (Xi == null)
                {
                    Xi = new MonoLinker <UserControlXi>(uc);
                }
                else
                {
                    Xi.Add(uc);
                }
            }
            if (Xi != null)
            {
                Xi.GetLast().Link = Xi;
            }
            panelXi.ResumeLayout();
        }