Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (!(obj is SystemCommand))
            {
                return(false);
            }

            SystemCommand other = (SystemCommand)obj;

            return(this.command == other.command && this.argument == other.argument);
        }
Exemplo n.º 2
0
        private static string ToDot(string parent, SystemCommand node)
        {
            string name = String.Format("SystemCommand{0}", counter++);

            text.AppendFormat("  {0}_cmd [label=\"{1}\"];\n", name, node.Command);
            text.AppendFormat("  {0}_arg [label=\"{1}\"];\n", name, node.Argument);
            text.AppendFormat("  {0} -> {0}_cmd;\n", name);
            text.AppendFormat("  {0} -> {0}_arg;\n", name);

            return(name);
        }
Exemplo n.º 3
0
        private static string ToDot(string parent, SystemCommand node)
        {
            string name = String.Format("SystemCommand{0}", counter++);
            text.AppendFormat("  {0}_cmd [label=\"{1}\"];\n", name, node.Command);
            text.AppendFormat("  {0}_arg [label=\"{1}\"];\n", name, node.Argument);
            text.AppendFormat("  {0} -> {0}_cmd;\n", name);
            text.AppendFormat("  {0} -> {0}_arg;\n", name);

            return name;
        }