Ejemplo n.º 1
0
        private void buttonAssign_Click(object sender, EventArgs e)
        {
            string msg = string.Empty;

            foreach (IssueAssignment ia in _issuesToAssign.ToList())
            {
                IssueItem xIssue = _data.FindIssueByID(ia.IssueID);
                xIssue.AssignedTo = ia.EmployeeID;
                msg += "\nto " + ia.EmployeeName + " issue #" + ia.IssueID;
            }
            if (msg.Length == 0)
            {
                msg = "\nNone";
            }
            msg = "Assigned issues:" + msg;
            MessageBox.Show(msg, "Assigned issues");
        }
        private void buttonReassign_Click(object sender, EventArgs e)
        {
            ViewRow row = issuesBindingSource.Current as ViewRow;

            if (row == null)
            {
                return;
            }
            IssueInfo issue = row.Value as IssueInfo;

            if (issue == null)
            {
                return;
            }
            IssueItem xIssue = _data.FindIssueByID(issue.IssueID);

            xIssue.AssignedTo = comboReassign.SelectedIndex;
        }