Ejemplo n.º 1
0
        private void _btnProjectBrowse_Click(object sender, EventArgs e)
        {
            var projects          = ProjectList.Load(false);
            WorkorderSelector frm = new WorkorderSelector(projects);

            frm.Owner = this;

            if (frm.ShowDialog() == DialogResult.OK)
            {
                _lblProjectCode.Text = frm.SelectedProject.Code;
                _lblProjectCode.Tag  = frm.SelectedProject.Id;
                CheckTimesForOverlap();
            }
        }
Ejemplo n.º 2
0
        private void HandleProjectButtonClick(DataGridViewCellEventArgs e)
        {
            ProjectList projects = ProjectList.Load(false);

            WorkorderSelector frm = new WorkorderSelector(projects);

            frm.Owner = this;

            if (frm.ShowDialog() == DialogResult.OK)
            {
                CurrentItems.Items[e.RowIndex].ProjectID = frm.SelectedProject.Id;

                _dgvItems.Refresh();
                _cachedProjects = ProjectList.Load(false);
                SetProjectCodesFromIDs();
            }
        }
Ejemplo n.º 3
0
        private void HandleProjectButtonClick(DataGridViewCellEventArgs e)
        {
            ProjectList       projects = ProjectList.Load(false);
            WorkorderSelector frm      = new WorkorderSelector(projects);

            frm.Owner = this;

            if (frm.ShowDialog() == DialogResult.OK)
            {
                for (int i = e.RowIndex; i >= 0; i--)
                {
                    _unconfirmedItems.Items[i].ProjectID = frm.SelectedProject.Id;
                }

                _dgvItems.Refresh();
                _cachedProjects = ProjectList.Load(false);
                SetProjectCodesFromIDs();
                SetWidth();
            }
        }