Ejemplo n.º 1
0
        private void Perform_ModifyOperation()
        {
            int idToModify = GetSelectedTaskId();

            if (idToModify == -1)
                return;

            string taskToModify = GetSelectedRawTaskName();
            string modifiedTask = "";

            AddTaskForm atf = new AddTaskForm(this.Location,this.Size);
            atf.Mode = "MODIFY";
            atf.Task = taskToModify;
            atf.ShowDialog();
            modifiedTask = atf.Task;

            Perform_ProcessTask(modifiedTask, idToModify);
            Perform_UpdateLabelsAndPriorities();

            GetExistingTasks();

            CurrentSelectedRow = (DataRowView)TasksBs.Current;
        }
Ejemplo n.º 2
0
        private void Perform_AddOperation()
        {
            string TaskToBeAdded = "";

            AddTaskForm atf = new AddTaskForm(this.Location,this.Size);
            atf.Mode = "ADD";
            atf.ShowDialog();
            TaskToBeAdded = atf.Task;
            if (TaskToBeAdded == null || TaskToBeAdded.Trim() == "")
                return;

            Perform_ProcessTask(TaskToBeAdded,-1);

            GetExistingTasks();
        }