Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (slectedimg == 0 || this.comboBox1.SelectedItem == null)
     {
         MessageBox.Show("Please select the number of squares and an image!");
     }
     else
     {
         if (this.comboBox1.SelectedItem.ToString() == "4")
         {
             GLOBAL.selectedPat = 4;
             GLOBAL.selectedImg = slectedimg;
             Lvl1 l1 = new Lvl1();
             l1.ShowDialog();
         }
         else if (this.comboBox1.SelectedItem.ToString() == "9")
         {
             GLOBAL.selectedPat = 9;
             GLOBAL.selectedImg = slectedimg;
             Lvl1 l1 = new Lvl1();
             l1.ShowDialog();
         }
     }
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (slectedimg == 0 || this.comboBox1.SelectedItem == null)
     {
         MessageBox.Show("Selectati numarul de patratele si o imagine");
     }
     else
     {
         if (this.comboBox1.SelectedItem.ToString() == "4")
         {
             GLOBAL.selectedPat = 4;
             GLOBAL.selectedImg = slectedimg;
             Lvl1 l1 = new Lvl1();
             l1.ShowDialog();
         }
         else if (this.comboBox1.SelectedItem.ToString() == "9")
         {
             GLOBAL.selectedPat = 9;
             GLOBAL.selectedImg = slectedimg;
             Lvl1 l1 = new Lvl1();
             l1.ShowDialog();
         }
     }
 }