Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7875049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:55:07+00:00 2026-06-03T02:55:07+00:00

I exported a source with reflector and i fix alot of problems there is

  • 0

I exported a source with reflector and i fix alot of problems there is one i haven’t be able to.

    EnhancedTypeSubMenu!1.cs(28,27): error CS0305: Using the generic type 'Name.CoreDataTypes.EnhancedTypeSubMenu<T>.MenuItem<TT>' requires 1 type arguments
EnhancedTypeSubMenu!1.cs(86,22): (Related location)
EnhancedTypeSubMenu!1.cs(33,22): error CS0305: Using the generic type 'Name.CoreDataTypes.EnhancedTypeSubMenu<T>.MenuItem<TT>' requires 1 type arguments
\EnhancedTypeSubMenu!1.cs(86,22): (Related location)

Here is the class, i have the same problem in other class . Would appreciate any help.

  using System;
using System.Collections.Generic;
using System.Windows.Forms;

public abstract class EnhancedTypeSubMenu<T> : AGeeksToyToolStripMenuItem<EnhancedType<T>>
{
    public EnhancedTypeSubMenu(EnhancedType<T> DataItem, T[] ChoiceItems, string Text) : base(DataItem, Text, null)
    {
        if (ChoiceItems != null)
        {
            foreach (MenuItem<T, T> item in this.MenuItems(ChoiceItems))
            {
                base.DropDownItems.Add(new EnhancedTypeMenuItem<T, T>(DataItem, item));
            }
        }
    }

    public EnhancedTypeSubMenu(EnhancedType<T> DataItem, T[] ChoiceItems, string Text, Control ctrl) : base(DataItem, Text, ctrl)
    {
        foreach (MenuItem<T, T> item in this.MenuItems(ChoiceItems))
        {
            base.DropDownItems.Add(new EnhancedTypeMenuItem<T, T>(DataItem, item, ctrl));
        }
    }

    protected virtual MenuItem<T, T> GetMenuItem(T value)
    {
        return new MenuItem<T, T>(value);
    }

    private List<MenuItem<T, T>> MenuItems(T[] ChoiceItems)
    {
        List<MenuItem<T, T>> list = new List<MenuItem<T, T>>();
        foreach (T local in ChoiceItems)
        {
            list.Add(this.GetMenuItem(local));
        }
        return list;
    }

    public class EnhancedTypeMenuItem<TT> : AGeeksToyToolStripMenuItem<EnhancedType<TT>>
    {
        public bool CheckIfMatched;
        public readonly EnhancedTypeSubMenu<T>.MenuItem<TT> MenuItem;
        public string TranslationCategory;

        public EnhancedTypeMenuItem(EnhancedType<TT> Data, EnhancedTypeSubMenu<T>.MenuItem<TT> menuItem) : base(Data, menuItem.Text, null)
        {
            this.TranslationCategory = "Enhanced Menu";
            this.CheckIfMatched = true;
            this.MenuItem = menuItem;
        }

        public EnhancedTypeMenuItem(EnhancedType<TT> Data, EnhancedTypeSubMenu<T>.MenuItem<TT> menuItem, string translationCategory) : base(Data, menuItem.Text, null)
        {
            this.TranslationCategory = "Enhanced Menu";
            this.CheckIfMatched = true;
            this.MenuItem = menuItem;
            this.TranslationCategory = translationCategory;
        }

        public EnhancedTypeMenuItem(EnhancedType<TT> Data, EnhancedTypeSubMenu<T>.MenuItem<TT> menuItem, Control ctrl) : base(Data, menuItem.Text, ctrl)
        {
            this.TranslationCategory = "Enhanced Menu";
            this.CheckIfMatched = true;
            this.MenuItem = menuItem;
        }

        protected override void OnClick(EventArgs e)
        {
            base.MenuObject.Value = this.MenuItem.Data;
            base.OnClick(e);
        }

        public override void SetMenu()
        {
            base.Checked = this.CheckIfMatched && base.MenuObject.Equals(this.MenuItem.Data);
            this.Text = TranslationManager.Translate(this.TranslationCategory, this.MenuItem.Text.Replace('_', ' '));
            base.SetMenu();
            this.Enabled = !base.Checked;
        }
    }

    public class MenuItem<TT>
    {
        public readonly TT Data;

        public MenuItem(TT data)
        {
            this.Data = data;
        }

        public virtual string Text
        {
            get
            {
                return this.Data.ToString().Replace("__", " / ").Replace("_", " ");
            }
        }
    }
}

}

And here is a printscreen

![visual studio print][1]

https://i.stack.imgur.com/n9rpu.png

Cant post with image tag due to reputation, dont remenber my previous account :/

UPDATE //

i changed the to and that works but i have one last error.

private void ChangeStakingType(AGeeksToyToolStripMenuItem>.MenuData newType)
{
this.StakeBox.StakingType.Value = newType.Data.Value;
}

requires 1 type argument
Is the error.

Menudata class is this one:

   namespace AGeeksToy.CoreDataTypes
{
    using System;
    using System.Windows.Forms;

    public abstract class AGeeksToyToolStripMenuItem<T> : ToolStripMenuItem, AGeeksToyMenu
    {
        public MouseButtons LastMouseButton;
        public MenuData<T> menuData;
        public static readonly VoidEventWithParam<MenuData<T>> RightClicked;

        static AGeeksToyToolStripMenuItem()
        {
            AGeeksToyToolStripMenuItem<T>.RightClicked = new VoidEventWithParam<MenuData<T>>();
        }

        protected AGeeksToyToolStripMenuItem(T obj, string text) : this(obj, text, null)
        {
        }

        protected AGeeksToyToolStripMenuItem(T obj, string text, Control ctrl)
        {
            base.DropDown.ImageList = IconManager.m_ImageList;
            this.menuData = new MenuData<T>(obj, ctrl);
            this.Text = text;
        }

        protected override void Dispose(bool disposing)
        {
            base.DropDown.ImageList = null;
            base.Dispose(disposing);
        }

        protected override void OnClick(EventArgs e)
        {
            if (this.MenuControl != null)
            {
                this.MenuControl.Refresh();
            }
            base.OnClick(e);
            if (this.LastMouseButton == MouseButtons.Right)
            {
                AGeeksToyToolStripMenuItem<T>.RightClicked.TriggerEvent(this.menuData);
            }
        }

        protected override void OnMouseDown(MouseEventArgs e)
        {
            this.LastMouseButton = e.Button;
            base.OnMouseDown(e);
        }

        public virtual void SetMenu()
        {
            this.LastMouseButton = MouseButtons.Left;
            if (this.MenuControl != null)
            {
                base.Visible = this.MenuControl.Visible;
                this.Enabled = this.MenuControl.Enabled;
            }
            foreach (ToolStripItem item in base.DropDownItems)
            {
                if (item is AGeeksToyMenu)
                {
                    (item as AGeeksToyMenu).SetMenu();
                }
            }
        }

        public T Menu_Data
        {
            get
            {
                return this.MenuObject;
            }
        }

        protected Control MenuControl
        {
            get
            {
                return this.menuData.Control;
            }
        }

        protected T MenuObject
        {
            get
            {
                return this.menuData.Data;
            }
            set
            {
                this.menuData.Data = value;
            }
        }


        public class MenuData<T>
        {
            public System.Windows.Forms.Control Control;
            public T Data;

            public MenuData(T obj, System.Windows.Forms.Control ctrl)
            {
                this.Data = obj;
                this.Control = ctrl;
            }
        }
    }

If anyone can run the project here and check the problem i would really appreciate
here is the download link:

http://code.google.com/p/agt-betfair-bot/downloads/list

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:55:08+00:00Added an answer on June 3, 2026 at 2:55 am

    Not sure if this was some sort of search and replace error, but try replacing all instances of this:

    MenuItem<T, T> 
    

    with this:

    MenuItem<T>
    

    This seems to be the source of the problem. This seems to be the correct name for the type parameter in the context I see the original.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a report to be exported in excel, pdf and word using jasper
I have a c# code.(which is exported from selenium IDE) using System; using System.Text;
I'm trying to set image source conditionaly using the following line: source={data.muted ? '/assets/audioMuted.gif'
I'm currently working on a project in which there are about 20 c source
I am developing using Eclipse under Fedora 15. I exported a runnable jar .
I wrote an simple project using java rmi and exported to an executable jar
I'm trying to export/import data in .csv format using SQLDeveloper. The source and destination
I am working with android source. I am sending a broadcast from one of
I exported a live MySQL database (running mysql 5.0.45) to a local copy (running
I have a exported function in a c++ DLL // C++ DLL (Blarggg.dll) extern

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.