private void btnNewAbsent_Click(object sender, EventArgs e) { AbsentDetail absentDetail = new AbsentDetail(this._planning); absentDetail.ShowDialog(); if (absentDetail.DialogResult == DialogResult.OK) { FindAllAbsences(); } }
private void btnEditAbsence_Click(object sender, EventArgs e) { Absence absence = (Absence)this.gridvAbsent.GetRow(this.gridvAbsent.FocusedRowHandle); if (absence == null) return; AbsentDetail editAbsence = new AbsentDetail(this._planning, absence); editAbsence.ShowDialog(); if (editAbsence.DialogResult == DialogResult.OK) FindAllAbsences(); }
private void btnEditAbsence_Click(object sender, EventArgs e) { Absence absence = (Absence)this.gridvAbsent.GetRow(this.gridvAbsent.FocusedRowHandle); if (absence == null) { return; } AbsentDetail editAbsence = new AbsentDetail(this._planning, absence); editAbsence.ShowDialog(); if (editAbsence.DialogResult == DialogResult.OK) { FindAllAbsences(); } }
private void gridvAbsent_DoubleClick(object sender, EventArgs e) { if (((ComboBoxItem)this.cboDispatcher.SelectedItem).Value.UsrID != Context.User.UsrID) { return; } //TODO: check if mouse is on row Absence absence = (Absence)this.gridvAbsent.GetRow(this.gridvAbsent.FocusedRowHandle); if (absence == null) { return; } AbsentDetail editAbsence = new AbsentDetail(this._planning, absence); editAbsence.ShowDialog(); if (editAbsence.DialogResult == DialogResult.OK) { FindAllAbsences(); } }
private void gridvAbsent_DoubleClick(object sender, EventArgs e) { if (((ComboBoxItem)this.cboDispatcher.SelectedItem).Value.UsrID != Context.User.UsrID) return; //TODO: check if mouse is on row Absence absence = (Absence)this.gridvAbsent.GetRow(this.gridvAbsent.FocusedRowHandle); if (absence == null) return; AbsentDetail editAbsence = new AbsentDetail(this._planning, absence); editAbsence.ShowDialog(); if (editAbsence.DialogResult == DialogResult.OK) FindAllAbsences(); }
private void btnNewAbsent_Click(object sender, EventArgs e) { AbsentDetail absentDetail = new AbsentDetail(this._planning); absentDetail.ShowDialog(); if (absentDetail.DialogResult == DialogResult.OK) FindAllAbsences(); }