private void button1_Click(object sender, EventArgs e) { if (txtSoft.Text == "" || txtHard.Text == "") { distribution_rate_error error = new distribution_rate_error(); error.ShowDialog(); } else { MessageBox.Show("Earthworks have been updated successfully.", "Construction Worker Distribution Guide System", MessageBoxButtons.OK, MessageBoxIcon.Information); update(); this.Hide(); } }
private void button1_Click(object sender, EventArgs e) { if (txtFooting.Text == "" || txtColumn.Text == "" || txtBeam.Text == "" || txtSlab.Text == "") { distribution_rate_error error = new distribution_rate_error(); error.ShowDialog(); } else { MessageBox.Show("Reinforced Cement Concrete have been updated successfully.", "Construction Worker Distribution Guide System", MessageBoxButtons.OK, MessageBoxIcon.Information); update(); this.Hide(); } }
private void button1_Click(object sender, EventArgs e) { if (txtMosaic.Text == "" || txtCeramic.Text == "" || txtVitrified.Text == "" || txtGranite.Text == "" || txtMarble.Text == "" || txtGlazed.Text == "" || txtMosaic_2.Text == "" || txtCeramic_2.Text == "" || txtVitrified_2.Text == "" || txtGranite_2.Text == "" || txtMarble_2.Text == "" || txtGlazed_2.Text == "") { distribution_rate_error error = new distribution_rate_error(); error.ShowDialog(); } else { MessageBox.Show("Flooring have been updated successfully.", "Construction Worker Distribution Guide System", MessageBoxButtons.OK, MessageBoxIcon.Information); update(); this.Hide(); } }
private void materialButton3_Click(object sender, EventArgs e) { CheckError(); distribution_rate_error errorMsg = new distribution_rate_error(); if (getError == true) { errorMsg.ShowDialog(); } else { MessageBox.Show("Man power distribution have been updated successfully.", "Construction Worker Distribution Guide System", MessageBoxButtons.OK, MessageBoxIcon.Information); updateRate(); } }