private void pictureBox2_Click(object sender, EventArgs e) { vipAdd v = new vipAdd(); v.showState = 1; v.ShowDialog(); listView1.Items.Clear(); FrmVip_Load(null, null); }
private void pictureBox4_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { if (Convert.ToInt32(listView1.SelectedItems[0].Tag) != 0) { vipAdd v = new vipAdd(); v.id = Convert.ToInt32(listView1.SelectedItems[0].Tag); v.showState = 2; v.ShowDialog(); listView1.Items.Clear(); FrmVip_Load(null, null); } } else { new Warning("未选择", 图标.Erro).Show(); } }
private void listView1_DoubleClick(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { if (Convert.ToInt32(listView1.SelectedItems[0].Tag) == 0) { vipAdd v = new vipAdd(); v.showState = 1; v.ShowDialog(); listView1.Items.Clear(); FrmVip_Load(null, null); } else { vipAdd v = new vipAdd(); v.id = Convert.ToInt32(listView1.SelectedItems[0].Tag); v.showState = 2; v.ShowDialog(); listView1.Items.Clear(); FrmVip_Load(null, null); } } }