public DialogResult ShowDialog(EditHourDataForm owner, DataTable ngTable, decimal remainHour, bool isHoliday) { _isHoliday = isHoliday; _remainHour = remainHour; this.NGTable = ngTable; _editForm = (EditHourDataForm)owner; return(this.ShowDialog(owner)); }
public DialogResult ShowDialog(EditHourDataForm owner, DataTable ngTable, decimal remainHour, bool isHoliday) { _isHoliday = isHoliday; _remainHour = remainHour; this.NGTable = ngTable; _editForm = (EditHourDataForm)owner; return this.ShowDialog(owner); }
public DialogResult ShowDialog(EditHourDataForm owner, BindingSource dataSource, decimal remainHour, bool isHoliday) { this.IsHoliday = isHoliday; this.DataTable = owner.CreateDataTable(); this.RemainHour = remainHour; this.OriBindingSource = dataSource; return(this.ShowDialog(owner)); }
private void tsmiHourDataFill_Click(object sender, EventArgs e) { try { EditHourDataForm form = new EditHourDataForm(); form.MdiParent = this; form.NewHourData(); form.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnEditHourData_Click(object sender, EventArgs e) { try { if (bsHourData.DataSource != null && dgvHourData.CurrentRow != null) { EditHourDataForm form = new EditHourDataForm(); DatabaseSet.工時Row row = (dgvHourData.CurrentRow.DataBoundItem as DataRowView).Row as DatabaseSet.工時Row; form.EditHourdata(row.員工編號, row.日期); form.MdiParent = this.MdiParent; form.AllowDeleteOldData = true; form.Show(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public DialogResult ShowDialog(EditHourDataForm owner, BindingSource dataSource, decimal remainHour, bool isHoliday) { this.IsHoliday = isHoliday; this.DataTable = owner.CreateDataTable(); this.RemainHour = remainHour; this.OriBindingSource = dataSource; return this.ShowDialog(owner); }
private void btnEditHourData_Click(object sender, EventArgs e) { try { if (bsHourData.DataSource != null && dgvHourData.CurrentRow != null) { EditHourDataForm form = new EditHourDataForm(); DatabaseSet.�u��Row row = (dgvHourData.CurrentRow.DataBoundItem as DataRowView).Row as DatabaseSet.�u��Row; form.EditHourdata(row.���u�s��, row.���); form.MdiParent = this.MdiParent; form.AllowDeleteOldData = true; form.Show(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }