示例#1
0
        public static void RegisterCustomConfigTab(ICodeweaverPlugin _this, string TabText, Control Tab)
        {
            CustomConfigTab ct = g.CustomConfigTabs.FindByControl(Tab);

            if (ct != null)
            {
                return;
            }

            g.CustomConfigTabs.Add(new CustomConfigTab(_this, Tab, TabText));
            GC.SuppressFinalize(Tab);
        }
示例#2
0
        public static void DeregisterCustomConfigTab(Control Tab)
        {
            CustomConfigTab ct = g.CustomConfigTabs.FindByControl(Tab);

            if (ct == null)
            {
                return;
            }

            g.CustomConfigTabs.Remove(ct);
            GC.ReRegisterForFinalize(Tab);
        }
示例#3
0
 public virtual void Remove(CustomConfigTab Tab)
 {
     this.List.Remove(Tab);
 }
示例#4
0
 public virtual void Add(CustomConfigTab Tab)
 {
     this.List.Add(Tab);
 }