コード例 #1
0
        private void tag_Mouse_move(object sender, EventArgs e)
        {
            OverlayControl true_tag = (OverlayControl)sender;

            true_tag.Refresh();
            //true_tag.BringToFront();
        }
コード例 #2
0
        private void tag_Click(object sender, EventArgs e)
        {
            OverlayControl true_tag = (OverlayControl)sender;

            if (info_visible == false)
            {
                info_visible          = true;
                true_tag.info.Visible = true;
                true_tag.info.TopMost = true;
            }

            else
            {
                info_visible          = false;
                true_tag.info.Visible = false;
            }
        }
コード例 #3
0
        public Tag(OverlayControl tag_show)
        {
            foreach (string[] element in form1.list_tags)
            {
                this.categorie.Add(element[0]);
            }

            foreach (string[] element in form1.list_tags)
            {
                this.statut.Add(element[1]);
            }

            foreach (string[] element in form1.list_tags)
            {
                this.etiquette.Add(element[2]);
            }

            this.tag_show = tag_show;
            tag_show.info = new Info_tag(categorie, etiquette, statut, thisDate);
        }
コード例 #4
0
        private void Color_tag()
        {
            tag_show          = new OverlayControl();
            tag_show.Location = new Point(timeline.Location.X + timeline.pb.Location.X - 18 * this.Width / 900, 480 * this.Height / 600);
            tag_show.Size     = new Size(this.Height * 44 / 600, this.Height * 200 / 600);

            string first_statut = list_tags[0][2];
            bool   idem_statut  = false;

            idem_statut = Border_color(first_statut, idem_statut);

            if (idem_statut && first_statut == "Bad")
            {
                tag_show.pen = new Pen(Color.FromArgb(255, 237, 25, 65), 3);
            }

            else if (idem_statut && first_statut == "Good")
            {
                tag_show.pen = new Pen(Color.FromArgb(255, 88, 171, 65), 3);
            }

            else
            {
                tag_show.pen = new Pen(Color.Black, 3);
            }

            string first_categorie = list_tags[0][0];
            bool   idem_categorie  = false;

            idem_categorie = Inside_color(first_categorie, idem_categorie);

            if (idem_categorie && first_categorie == "Securite")
            {
                tag_show.inside_color        = Color.FromArgb(255, 253, 184, 19);
                tag_show.title_tag.BackColor = Color.FromArgb(255, 253, 184, 19);
                tag_show.title_tag.ForeColor = System.Drawing.Color.White;
                tag_show.title_tag.Text      = "SECU";
            }

            else if (idem_categorie && first_categorie == "Performance")
            {
                tag_show.inside_color        = Color.FromArgb(255, 153, 53, 255);
                tag_show.title_tag.BackColor = Color.FromArgb(255, 153, 53, 255);
                tag_show.title_tag.ForeColor = System.Drawing.Color.White;
                tag_show.title_tag.Text      = "PERF";
            }

            else if (idem_categorie && first_categorie == "Comportement")
            {
                tag_show.inside_color        = Color.FromArgb(255, 6, 159, 219);
                tag_show.title_tag.BackColor = Color.FromArgb(255, 6, 159, 219);
                tag_show.title_tag.ForeColor = System.Drawing.Color.White;
                tag_show.title_tag.Text      = "COM";
            }

            else if (idem_categorie && first_categorie == "SA")
            {
                tag_show.inside_color        = Color.FromArgb(255, 143, 114, 81);
                tag_show.title_tag.BackColor = Color.FromArgb(255, 143, 114, 81);
                tag_show.title_tag.ForeColor = System.Drawing.Color.White;
                tag_show.title_tag.Text      = "SA";
            }

            else if (idem_categorie && first_categorie == "Commentaire")
            {
                tag_show.inside_color        = Color.White;
                tag_show.title_tag.BackColor = Color.White;
                tag_show.title_tag.ForeColor = System.Drawing.Color.Black;
                tag_show.title_tag.Text      = "MAN";
            }

            else
            {
                tag_show.inside_color        = Color.White;
                tag_show.title_tag.BackColor = Color.White;
                tag_show.title_tag.ForeColor = System.Drawing.Color.Black;
                tag_show.title_tag.Text      = "MULTI";
            }

            tags_show_on_screen.Add(tag_show);
            this.Controls.Add(tag_show);
        }