예제 #1
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            vipAdd v = new vipAdd();

            v.showState = 1;
            v.ShowDialog();
            listView1.Items.Clear();
            FrmVip_Load(null, null);
        }
예제 #2
0
 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();
     }
 }
예제 #3
0
 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);
         }
     }
 }