예제 #1
0
        private void bCreateTask(object sender, RoutedEventArgs e)
        {
            Task task = new Task()
            {
                name       = txtTaskName.Text,
                project    = activeProj,
                developer  = txtTaskDeveloper.Text,
                complexity = Int32.Parse(txtTaskComplexity.Text),
                deadline   = txtTaskDeadline.Text
            };

            if (client.AddTask("'" + task.project + "', '" + task.name + "', '" + task.developer + "', '" + task.complexity + "', '" + task.deadline + "'"))
            {
                MessageBox.Show("Task added");
                HideNewtaskForm();
                ShowProjects();
            }
        }