Ejemplo n.º 1
0
        public void repaint()
        {
            int top = 1;

            for (int n = 0; n < datags.Count; n++)
            {
                DaTagView dtv = (DaTagView)datags[n];
                dtv.Parent   = this;
                dtv.Top      = top;
                dtv.Left     = 1;
                dtv.Width    = 150;
                dtv.Height   = 100;
                dtv.zoomRate = 25;
                dtv.showTags();
                dtv.Show();
                dtv.Visible = true;

                Label l = (Label)labels[n];
                l.Parent = this;
                l.Top    = top;
                l.Left   = 151;
                l.Show();
                l.Visible = true;

                top += 150;
            }
        }
Ejemplo n.º 2
0
        public void addImage(string Path, string Text)
        {
            DaTagView dtv = new DaTagView();

            dtv.image = Path;
            datags.Add(dtv);

            Label l = new Label();

            l.Text = Text;
            labels.Add(l);
        }
Ejemplo n.º 3
0
        public void addTag(int X1, int Y1, int X2, int Y2, string Text, DaTag.Tag.STATUS Status)
        {
            int n = datags.Count;

            if (n <= 0)
            {
                return;
            }

            DaTagView dtv = (DaTagView)datags[n - 1];

            dtv.addTag(X1, Y1, X2, Y2, Text, Status);
        }