Exemple #1
0
 private void shirtINFO_Load(object sender, EventArgs e)
 {
     thisShirt = Code.Static_Data.shirtData.selectedShirt;
     Code.Static_Data.shirtData.selectedShirt = null;
     pic.Image    = thisShirt.myImage;
     typeTXT.Text = thisShirt.myType.ToString();
     availabilityUI();
 }
Exemple #2
0
 //Single click on an item
 private void listView1_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count == 1)
     {
         Code.shirts.shirt myShirt = returned[listView1.SelectedItems[0].ImageIndex];
         Code.Static_Data.shirtData.selectedShirt = myShirt;
         shirtINFO    selected = new shirtINFO();
         DialogResult result   = selected.ShowDialog();
         if (result == DialogResult.Abort)
         {
             Close();
         }
     }
     else
     {
         MessageBox.Show("SELECT ONE ITEM", "INFO", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }