Ejemplo n.º 1
0
        public TagForm()
        {
            InitializeComponent();

            TabControlImageTagger = new TagTabControl(0, tagFormStyle, null, null, this);
            Controls.Add(TabControlImageTagger);
            TabControlImageTagger.Location = new Point(119, 8);
        }
Ejemplo n.º 2
0
        public TagClickerForm(int startingTabIndex, TagFormStyle tagFormStyle, WallpaperData.ImageData activeImage = null, TagData activeTag = null, Action <TagData> tagClickEvent = null)
        {
            InitializeComponent();

            tagTabControl = new TagTabControl(startingTabIndex, tagFormStyle, activeImage, activeTag, tagClickEvent: tagClickEvent);

            //this.Size = tagTabControl.Size;
            Controls.Add(tagTabControl);
            tagTabControl.Location = new Point(0, 0);
        }
Ejemplo n.º 3
0
        public static TagContainer GetCategoryTagContainer(CategoryData category, TagTabControl tagTabControl)
        {
            TagContainer categoryTagContainer = null;

            foreach (TabPage tabPage in tagTabControl.TabPages)
            {
                if (tabPage.Text == category.Name)
                {
                    if (tabPage.Controls.Count > 0) // otherwise, the TagContainer does not yet exist and needs to be created
                    {
                        categoryTagContainer = tabPage.Controls[0] as TagContainer;
                    }

                    break;
                }
            }

            return(categoryTagContainer);
        }