Beispiel #1
0
        public TagForm()
        {
            InitializeComponent();

            TabControlImageTagger = new TagTabControl(0, tagFormStyle, null, null, this);
            Controls.Add(TabControlImageTagger);
            TabControlImageTagger.Location = new Point(119, 8);
        }
Beispiel #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);
        }
Beispiel #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);
        }