예제 #1
0
        private void btnNewAbsent_Click(object sender, EventArgs e)
        {
            AbsentDetail absentDetail = new AbsentDetail(this._planning);

            absentDetail.ShowDialog();
            if (absentDetail.DialogResult == DialogResult.OK)
            {
                FindAllAbsences();
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
        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();
            }
        }
예제 #5
0
        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();
        }
예제 #6
0
 private void btnNewAbsent_Click(object sender, EventArgs e)
 {
     AbsentDetail absentDetail = new AbsentDetail(this._planning);
     absentDetail.ShowDialog();
     if (absentDetail.DialogResult == DialogResult.OK)
         FindAllAbsences();
 }