private void button3_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { var i = listView1.SelectedItems[0].Index; var frm = new CreateOrder(Setting.Orders[i], i); frm.ShowDialog(); RefrashOrderList(); } }
private void button1_Click(object sender, EventArgs e) { var frm = new CreateOrder(); frm.ShowDialog(); RefrashOrderList(); }