예제 #1
0
        private TaskOptionPanel createOptionPanel()
        {
            TaskOptionPanel option = new TaskOptionPanel();

            option.Anchor         = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
            option.Margin         = new Padding(0);
            option.completeEvent += completeButton_ClickEvent;
            option.editEvent     += editButton_ClickEvent;
            option.returnEvent   += returnButton_ClickEvent;
            option.deleteEvent   += deleteButton_ClickEvent;

            return(option);
        }
예제 #2
0
        //タスクのオプション表示
        private void showOptionContent()
        {
            if (this.Lock)
            {
                return;
            }
            this.mainPanel.Controls.Clear();
            TaskOptionPanel opt = createOptionPanel();

            this.mainPanel.Controls.Add(opt, 0, 0);
            this.mainPanel.SetColumnSpan(opt, this.mainPanel.ColumnCount);
            this.showOption = true;
            //指定タスク以外のオプションを非表示に
            TaskViewManager.getInstance().indicateShowMenu(this);
        }