Exemplo n.º 1
0
        private void gridviewPlanning_DoubleClick(object sender, EventArgs e)
        {
            //Todo: check if mouse is on a row
            if (((ComboBoxItem)this.cboDispatcher.SelectedItem).Value.UsrID != Context.User.UsrID)
            {
                return;
            }

            try
            {
                Job job = (Job)this.gridviewPlanning.GetRow(this.gridviewPlanning.FocusedRowHandle);
                if (job == null)
                {
                    return;
                }

                JobDetail jobDetail = new JobDetail(this._planning, job);
                jobDetail.ShowDialog();

                if (jobDetail.DialogResult == DialogResult.OK)
                {
                    FindAllJobs();
                }
            }
            catch (Exception exception1)
            {
                Exception thisException = exception1;
                Management.ShowException(thisException);
            }
        }
Exemplo n.º 2
0
        private void btnNewJob_Click(object sender, EventArgs e)
        {
            JobDetail newJob = new JobDetail(this._planning);

            newJob.ShowDialog();

            if (newJob.DialogResult == DialogResult.OK)
            {
                FindAllJobs();
            }
        }
Exemplo n.º 3
0
        private void btnEditJob_Click(object sender, EventArgs e)
        {
            Job job = (Job)this.gridviewPlanning.GetRow(this.gridviewPlanning.FocusedRowHandle);

            if (job == null)
            {
                return;
            }

            JobDetail editJob = new JobDetail(this._planning, job);

            editJob.ShowDialog();

            if (editJob.DialogResult == DialogResult.OK)
            {
                FindAllJobs();
            }
        }
Exemplo n.º 4
0
        private void btnEditJob_Click(object sender, EventArgs e)
        {
            Job job = (Job) this.gridviewPlanning.GetRow(this.gridviewPlanning.FocusedRowHandle);

            if (job == null)
                return;

            JobDetail editJob = new JobDetail(this._planning, job);
            editJob.ShowDialog();

            if (editJob.DialogResult == DialogResult.OK)
            FindAllJobs();
        }
Exemplo n.º 5
0
        private void gridviewPlanning_DoubleClick(object sender, EventArgs e)
        {
            //Todo: check if mouse is on a row
            if (((ComboBoxItem) this.cboDispatcher.SelectedItem).Value.UsrID != Context.User.UsrID)
                return;

            try
            {
                Job job = (Job) this.gridviewPlanning.GetRow(this.gridviewPlanning.FocusedRowHandle);
                if (job == null)
                    return;

                JobDetail jobDetail = new JobDetail(this._planning, job);
                jobDetail.ShowDialog();

                if (jobDetail.DialogResult == DialogResult.OK)
                FindAllJobs();
            }
            catch (Exception exception1)
            {
                Exception thisException = exception1;
                Management.ShowException(thisException);
            }
        }
Exemplo n.º 6
0
        private void btnNewJob_Click(object sender, EventArgs e)
        {
            JobDetail newJob = new JobDetail(this._planning);
            newJob.ShowDialog();

            if (newJob.DialogResult == DialogResult.OK)
            FindAllJobs();
        }