Exemple #1
0
        private void initialise(Task task, bool insert)
        {
            InitializeComponent();
            CenterToScreen();
            this.task   = task;
            this.insert = insert;
            task.DeepCopyInto(ref oldCopy);
            taskStatuses = TaskStatus.Select();
            taskTypes    = TaskType.Select();
            userEmails   = StoredProcedureHelper.GetClientEmails();
            createDataGridColumns();
            bindFields(task);

            if (task.Location != null)
            {
                updateLocationsTable();
                setDataGridViewSelection(task.Location);
            }
        }