示例#1
0
 private void method_2()
 {
     if (this._texFile != null)
     {
         this._texFile.Dispose();
         this._texFile = null;
     }
     this.ImgList.Items.Clear();
     this.ImgList.SelectedIndex = -1;
     Control arg_49_0 = this.RebuildBtn;
     this.ImageInfoBox.Enabled = false;
     arg_49_0.Enabled = false;
     this.ImagePreviewBox.Image = null;
 }
示例#2
0
 private void DataFolder_TreeView_DoubleClick(object sender, EventArgs e)
 {
     if (this.DataFolder_TreeView.SelectedNode != null)
     {
         if (this.DataFolder_TreeView.SelectedNode.Tag is int && this.DataFolder_TreeView.SelectedNode.ToolTipText != "")
         {
             this.method_2();
             string toolTipText = this.DataFolder_TreeView.SelectedNode.ToolTipText;
             zzPakNode2 @class;
             if (File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen")))
             {
                 @class = new zzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false);
             }
             else
             {
                 @class = new zzPakNode2(toolTipText, false);
             }
             this._texFile = new TexFile(@class.method_13((int)this.DataFolder_TreeView.SelectedNode.Tag));
             for (int i = 1; i <= this._texFile.TextureCount(); i++)
             {
                 this.ImgList.Items.Add("Image " + i);
             }
             @class.Dispose();
             return;
         }
         if (this.DataFolder_TreeView.SelectedNode.ToolTipText != "")
         {
             this.method_2();
             this._texFile = new TexFile(this.DataFolder_TreeView.SelectedNode.ToolTipText);
             for (int j = 1; j <= this._texFile.TextureCount(); j++)
             {
                 this.ImgList.Items.Add("Image " + j);
             }
         }
     }
 }