コード例 #1
0
        private void editTask()
        {
            InfoObject titleInfo       = SystemInterface.editTaskTitle(userName, currTaskUID, CurrTaskStatus, EDC.Title);
            InfoObject descriptionInfo = SystemInterface.editTaskDescription(userName, currTaskUID, CurrTaskStatus, EDC.Description);
            InfoObject dueDateInfo     = SystemInterface.editTaskDueDate(userName, currTaskUID, CurrTaskStatus, EDC.DueDate.ToShortDateString());

            if (titleInfo.getIsSucceeded() && descriptionInfo.getIsSucceeded() && dueDateInfo.getIsSucceeded())
            {
                main.show(SystemInterface.getBoard(userName));
                this.Close();
            }
            else
            {
                MessageBox.Show(((titleInfo.getIsSucceeded()) ? "" : "\n" + titleInfo.getMessage()) + ((descriptionInfo.getIsSucceeded()) ? "" : "\n" + descriptionInfo.getMessage()) + ((dueDateInfo.getIsSucceeded()) ? "" : "\n" + dueDateInfo.getMessage()));
            }
        }