Example #1
0
        private void gridvMemo_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
            {
                PlanningMemo memo = (PlanningMemo)this.gridvMemo.GetRow(this.gridvMemo.FocusedRowHandle);
                if (memo == null)
                {
                    return;
                }

                MemoDetail MemoDetail = new MemoDetail(memo);
                MemoDetail.ShowDialog();

                if (MemoDetail.DialogResult == DialogResult.OK)
                {
                    FindAllJobs();
                }
            }
            catch (Exception exception1)
            {
                Exception thisException = exception1;
                Management.ShowException(thisException);
            }
        }
Example #2
0
        private void btnNewMemo_Click(object sender, EventArgs e)
        {
            MemoDetail memo = new MemoDetail(this._planning);

            memo.ShowDialog();

            if (memo.DialogResult == DialogResult.OK)
            {
                FindAllMemos();
            }
        }
Example #3
0
        private void btnEditMemo_Click(object sender, EventArgs e)
        {
            PlanningMemo memo = (PlanningMemo)this.gridvMemo.GetRow(this.gridvMemo.FocusedRowHandle);

            if (memo == null)
            {
                return;
            }

            MemoDetail editMemo = new MemoDetail(memo);

            editMemo.ShowDialog();

            if (editMemo.DialogResult == DialogResult.OK)
            {
                FindAllMemos();
            }
        }
Example #4
0
        private void gridvMemo_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
            {
                PlanningMemo memo = (PlanningMemo) this.gridvMemo.GetRow(this.gridvMemo.FocusedRowHandle);
                if (memo == null)
                    return;

                MemoDetail MemoDetail = new MemoDetail(memo);
                MemoDetail.ShowDialog();

                if(MemoDetail.DialogResult == DialogResult.OK)
                    FindAllJobs();
            }
            catch (Exception exception1)
            {
                Exception thisException = exception1;
                Management.ShowException(thisException);
            }
        }
Example #5
0
        private void btnNewMemo_Click(object sender, EventArgs e)
        {
            MemoDetail memo = new MemoDetail(this._planning);
            memo.ShowDialog();

            if (memo.DialogResult == DialogResult.OK)
            FindAllMemos();
        }
Example #6
0
        private void btnEditMemo_Click(object sender, EventArgs e)
        {
            PlanningMemo memo = (PlanningMemo) this.gridvMemo.GetRow(this.gridvMemo.FocusedRowHandle);

            if (memo == null)
                return;

            MemoDetail editMemo = new MemoDetail(memo);
            editMemo.ShowDialog();

            if (editMemo.DialogResult == DialogResult.OK)
                FindAllMemos();
        }