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); } }
private void btnNewMemo_Click(object sender, EventArgs e) { MemoDetail memo = new MemoDetail(this._planning); memo.ShowDialog(); if (memo.DialogResult == DialogResult.OK) { FindAllMemos(); } }
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(); } }
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); } }
private void btnNewMemo_Click(object sender, EventArgs e) { MemoDetail memo = new MemoDetail(this._planning); memo.ShowDialog(); if (memo.DialogResult == DialogResult.OK) FindAllMemos(); }
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(); }