Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     //Prevent derpy from getting in here..
     if ( !Server.UseTextures ) {
         WoM.Enabled = false;
         return;
     }
     if ( GetSelectedLevelTab() == null ) return;
     var textures = new GUI.Textures { l = GetSelectedLevelTab() };
     textures.Show();
     textures.FormClosing += delegate {
         textures.Dispose();
     };
 }
Beispiel #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();
                                 };
 }