public override bool Equals(object obj)
        {
            GenericTArgOpts other = obj as GenericTArgOpts;

            if (other != null)
            {
                return(idx == other.idx);
            }
            return(false);
        }
        public void AddArg(GenericTArgOpts arg)
        {
            if (commandArgs.Count > 0 && arg.idx < commandArgs[commandArgs.Count - 1].idx)
            {
                throw new Exception("Can't add args out of order.");
            }
            commandArgs.Add(arg);
            string japtext = commands[0].GetArg(arg.idx);

            AddRow((int)Math.Ceiling((double)japtext.Length / 24), japtext);
        }
 public void AddArg(GenericTArgOpts arg)
 {
     if (commandArgs.Count > 0 && arg.idx < commandArgs[commandArgs.Count - 1].idx)
         throw new Exception("Can't add args out of order.");
     commandArgs.Add(arg);
     string japtext = commands[0].GetArg(arg.idx);
     AddRow((int)Math.Ceiling((double)japtext.Length / 24), japtext);
 }