private void button_order_details_Click(object sender, EventArgs e) { if (String.IsNullOrWhiteSpace(comboSelect.Text)) { MessageBox.Show("Please select an order."); return; } Globals.current_order = comboSelect.Text.Split('-')[0].Trim(); ListMyItems form = new ListMyItems(); form.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { ListMyItems form = new ListMyItems(); form.ShowDialog(); }