Пример #1
0
        private TaskOptionPanel createOptionPanel()
        {
            TaskOptionPanel view = new TaskOptionPanel();

            view.Anchor       = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
            view.Margin       = new Padding(0);
            view.doneEvent   += doneButton_ClickEvent;
            view.editEvent   += editButton_ClickEvent;
            view.returnEvent += returnButton_ClickEvent;
            view.deleteEvent += deleteButton_ClickEvent;

            return(view);
        }
Пример #2
0
        private void showOptionContent()
        {
            if (this.isLock)
            {
                return;
            }

            this.mainPanel.Controls.Clear();
            TaskOptionPanel opt = createOptionPanel();

            this.mainPanel.Controls.Add(opt, 0, 0);
            this.mainPanel.SetColumnSpan(opt, this.mainPanel.ColumnCount);
            this.isShowMenu = true;

            TaskViewManager.getInstance().indicateShowMenu(this);
        }