示例#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();
     };
 }
示例#2
0
文件: Window.cs 项目: Sinjai/MCForge
 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();
                                 };
 }