Exemplo n.º 1
0
        public zzPakNode1 method_2(string string_0)
        {
            if (string.IsNullOrEmpty(string_0))
            {
                return(this);
            }
            List <string> list = new List <string>(string_0.Split(new char[]
            {
                '\\',
                '/'
            }, StringSplitOptions.RemoveEmptyEntries));
            zzPakNode1 @class;

            if (base.Nodes.ContainsKey(list[0]) && base.Nodes[list[0]] is zzPakNode1)
            {
                @class = (zzPakNode1)base.Nodes[list[0]];
                list.RemoveAt(0);
                @class = ((list.Count > 0) ? @class.method_3(list) : @class);
            }
            else
            {
                @class = new zzPakNode1(list[0]);
                list.RemoveAt(0);
                base.Nodes.Add(@class);
                @class = ((list.Count > 0) ? @class.method_3(list) : @class);
            }
            return(@class);
        }
Exemplo n.º 2
0
        public void method_1 <T>(string string_0, T gparam_0) where T : TreeNode
        {
            zzPakNode1 @class = string.IsNullOrEmpty(string_0) ? this : this.method_2(KeyGenerator.smethod_10(string_0));

            if (@class.Nodes.ContainsKey(gparam_0.Text))
            {
                @class.Nodes.RemoveByKey(gparam_0.Text);
            }
            @class.Nodes.Add(gparam_0);
            if (gparam_0 is Interface12)
            {
                TreeNode treeNode = this;
                int      level    = treeNode.Level;
                while (level-- != 0)
                {
                    treeNode = treeNode.Parent;
                }
                zzPakNode2  class2     = treeNode as zzPakNode2;
                Interface12 @interface = class2.method_10(string_0);
                if (@interface == null)
                {
                    class2.list_0.Add(gparam_0 as Interface12);
                    return;
                }
                class2.list_0[class2.list_0.IndexOf(@interface)] = (gparam_0 as Interface12);
            }
        }
Exemplo n.º 3
0
 public zzPakNode2(bool bool_5, bool bool_6, int int_1) : base("PakFile")
 {
     this.class317_0   = new zzPakNode1(true);
     this.list_0       = new List <Interface12>();
     this.dictionary_0 = new Dictionary <int, int[]>();
     this.bool_1       = true;
     this.bool_2       = true;
     this.bool_4       = true;
     //base..ctor("PakFile");
     this.bool_2             = bool_5;
     this.bool_1             = bool_6;
     this.int_0              = int_1;
     base.ImageIndex         = 37;
     base.SelectedImageIndex = 37;
 }
Exemplo n.º 4
0
 public zzPakNode2(string string_2, string string_3, bool bool_5) : base()
 {
     this.class317_0   = new zzPakNode1(true);
     this.list_0       = new List <Interface12>();
     this.dictionary_0 = new Dictionary <int, int[]>();
     this.bool_1       = true;
     this.bool_2       = true;
     this.bool_4       = true;
     //base..ctor();
     base.Text     = KeyGenerator.GetFileName(string_2);
     this.string_0 = string_2;
     this.string_1 = string_3;
     this.bool_4   = bool_5;
     if (File.Exists(string_2))
     {
         this.method_4();
     }
     base.ImageIndex         = 37;
     base.SelectedImageIndex = 37;
 }
Exemplo n.º 5
0
        public zzPakNode1 method_3(List <string> list_0)
        {
            if (list_0.Count == 0)
            {
                return(this);
            }
            if (!base.Nodes.ContainsKey(list_0[0]) || !(base.Nodes[list_0[0]] is zzPakNode1))
            {
                zzPakNode1 @class = new zzPakNode1(list_0[0]);
                list_0.RemoveAt(0);
                base.Nodes.Add(@class);
                return(@class.method_3(list_0));
            }
            if (list_0.Count == 1)
            {
                return((zzPakNode1)base.Nodes[list_0[0]]);
            }
            string key = list_0[0];

            list_0.RemoveAt(0);
            return(((zzPakNode1)base.Nodes[key]).method_3(list_0));
        }