private void BtnAddSchedule_Click(object sender, EventArgs e) { BusyName = textName.Text; textName.Text = business.CheckEmploymentFormat(textName.Text); AddSchedule empForm = new AddSchedule(); empForm.Show(); this.Hide(); }
private void dataGridBusiness_CellValueChanged(object sender, DataGridViewCellEventArgs e) { if (dataGridBusiness.CurrentCell.Value != null) { string editedEmp = dataGridBusiness.CurrentCell.Value.ToString(); editedEmp = employments.CheckEmploymentFormat(editedEmp); if (editedEmp != "") { employments.EditEmpFiles(editedEmp, dataGridBusiness.CurrentCell.RowIndex); } } FillGrid(); }