Esempio n. 1
0
        //public void Set_annotationComments(int cnt, string comments)
        //{
        //    this.comments = comments;
        //    at = new AnnotationText();
        //    at.MouseClick += at_MouseClick;
        //    at.Size = new Size(250, 100);
        //    at.Dock = DockStyle.Top;
        //    at.ID = cnt;
        //    at.setValues(cnt, comments);
        //    this.class11.Controls.Add(at);

        //}
        public void addControl2FLP(int cnt, string comments)
        {
            this.comments     = comments;
            at                = new AnnotationText();
            at.annotation_id += at_annotation_id;
            at.MouseClick    += at_MouseClick;
            if (Screen.PrimaryScreen.Bounds.Width == 1280)
            {
                at.Size = new Size(235, 75);
            }
            else
            if (Screen.PrimaryScreen.Bounds.Width == 1366)
            {
                at.Size = new Size(220, 60);
            }
            else
            if (Screen.PrimaryScreen.Bounds.Width == 1920)
            {
                at.Size = new Size(250, 50);
            }


            at.Dock = DockStyle.Top;
            at.ID   = cnt;
            if (!isIdExists(at.ID))
            {
                at.setValues(cnt, comments);
                this.class11.Controls.Add(at);
                //this.class11.Controls.SetChildIndex(at, 0);
                Highlight_control();
            }
        }
Esempio n. 2
0
 public void addControl2FLP(int cnt, string comments)
 {
     this.comments  = comments;
     at             = new AnnotationText();
     at.MouseClick += at_MouseClick;
     at.Size        = new Size(120, 45);
     at.Dock        = DockStyle.Top;
     at.ID          = cnt;
     //at.isActive = false;
     at.BackColor = Color.Black;
     at.setValues(cnt, comments);
     this.annotationFlowLayout1.Controls.Add(at);
     //this.annotationFlowLayout1.Controls.SetChildIndex(at, 0);
 }