public void NextForm() { if (type == MenuForm.typeFolio.unloading) { readerUnloading.Show(FolioBox.Text); } else { readerLoading.Show(FolioBox.Text); } }
private void NextButton_Click(object sender, EventArgs e) { if (FolioBox.TextLength != 0) { if (type == MenuForm.typeFolio.unloading) { readerUnloading.Show(FolioBox.Text); } else { readerLoading.Show(FolioBox.Text); } } else { MessageBox.Show("Indique un folio", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1); } }