Пример #1
0
        private void userRegisztrácioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AdminRegisztracio ad = new AdminRegisztracio();

            ad.index = 1;
            ad.Show();
        }
Пример #2
0
 private void userMódósításToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedIndices.Count > 0)
     {
         UserAdatok u = null;
         string     a;
         int        index      = -1;
         int        firstIndex = listView1.SelectedIndices[0];
         a     = listView1.Items[firstIndex].SubItems[0].Text;
         index = Convert.ToInt32(a);
         if (index > -1)
         {
             foreach (UserAdatok item in userek)
             {
                 if (item.ID == index)
                 {
                     u = item;
                 }
             }
         }
         AdminRegisztracio ad = new AdminRegisztracio();
         ad.index = 2;
         ad.user  = u;
         ad.Show();
     }
     else
     {
         MessageBox.Show("Kérem válaszi ki a listából, a módósítás folyamát indításához", "Információ", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }