private void btnCadastrarOrdem_Click(object sender, EventArgs e) { if (txtAparelhoOrdens.Text.Equals("Modelo do aparelho") || string.IsNullOrWhiteSpace(txtAparelhoOrdens.Text)) { MessageBox.Show("Voce esqueceu de digitar o nome do Aparelho", "ALERTA!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { form_DiaEntrega formPrevisaoEntrega = new form_DiaEntrega(this, corGeral); formPrevisaoEntrega.ShowDialog(); } }
public void CadastrarServicoNovo() { form_DiaEntrega formPrevisaoEntrega = new form_DiaEntrega(this, corGeral); formPrevisaoEntrega.ShowDialog(); }