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); }
//タスクのオプション表示 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); }