Exemplo n.º 1
0
            public RemoveTabButton(FocussedTaskTab parentTab, HomeworkTabController tabController) : base()
            {
                this.BackColor     = Color.White;
                this.AutoSize      = true;
                this.tabController = tabController;
                this.parentTab     = parentTab;

                this.FlatStyle = FlatStyle.Flat;
                this.FlatAppearance.BorderSize = 0;
                this.Cursor                = Cursors.Hand;
                this.BackgroundImage       = global::Trackr.Properties.Resources.blackCross;
                this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
                this.Size = new Size(60, 60);
            }
Exemplo n.º 2
0
        public void GoToFocussedTab(Homework task, Feedback feedback)
        {
            FocussedTaskTab tab;
            bool            exists = this.focussedTasks.TryGetValue(task.id, out tab);

            if (exists)
            {
                this.SelectTab(tab);
            }
            else
            {
                tab = new FocussedTaskTab(task, this, feedback: feedback);
                this.focussedTasks.Add(task.id, tab);
                this.TabPages.Add(tab);
                this.SelectTab(tab);
            }
        }