Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (GetSelectedLevel() != null)
     {
         GUI.Textures textures = new GUI.Textures();
         textures.l = GetSelectedLevel();
         textures.Show();
     }
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (GetSelectedLevelTab() == null) return;
     var textures = new GUI.Textures {l = GetSelectedLevelTab()};
     Server.s.Log(textures.l.name);
     textures.Show();
     textures.FormClosing += delegate
                                 {
                                     textures.l = null;
                                     textures.Hide();
                                     textures.Dispose();
                                 };
 }