Exemple #1
0
        public void Build(ICommandBuilder builder)
        {
            builder.AddCommand("Small text(en-us)", v => SendKeys.SendWait(TextFomatter.FormatVariable(v)));
            builder.AddCommand("big text(en-us)", v => SendKeys.SendWait(TextFomatter.FormatClass(v)));
            builder.AddCommand("class text(en-us)", v => SendKeys.SendWait("class " + TextFomatter.FormatClass(v) + "{{}{enter}"));
            builder.AddCommand("Local text(en-us)", v => SendKeys.SendWait("var " + TextFomatter.FormatVariable(v) + "="));
            //builder.AddCommand("function text(en-us)", v => SendKeys.SendWait(TextFomatter.FormatClass(v)+ "{(}{)}{{}{enter}"));

            builder.AddCommand("function text()", v => SendKeys.SendWait(TextFomatter.FormatClass(v) + "{(}{)}{{}{enter}"));
            builder.AddCommand("function<type,CSharpAddon.List.Types><name,text()>", (IVaraibles v)
                               => SendKeys.SendWait(v.Get("type") + " " + TextFomatter.FormatClass(v.Get("name")) + "{(}{)}{{}{enter}"));
            builder.AddCommand("<a,CSharpAddon.List.AccessModifiers>function<name,text()>", (IVaraibles v)
                               => SendKeys.SendWait(v.Get("a") + " void " + TextFomatter.FormatClass(v.Get("name")) + "{(}{)}{{}{enter}"));

            builder.AddCommand("<a,CSharpAddon.List.AccessModifiers>class text()", x => SendKeys.SendWait(x.Get(0) + " class " + TextFomatter.FormatClass(x.Get(1)) + "{{}{enter}"));

            //builder.AddCommand("<a,CSharpAddon.List.AccessModifiers>class text()", (i, x) => SendKeys.SendWait(x[0] + " class " + TextFomatter.FormatClass(x[1]) + "{{}{enter}"));
            //builder.AddCommand("<a,CSharpAddon.List.AccessModifiers>class text() with <t,CSharpAddon.List.Types>", (i, x) => SendKeys.SendWait(x[0] + " class " + TextFomatter.FormatClass(x[1]) + ":" + x[2] + "{{}{enter}"));
        }
 public void Build(ICommandBuilder builder)
 {
     builder.AddCommand("<a,CSharpAddon.List.Members>", x => SendKeys.SendWait(x));
     builder.AddCommand("small <a,CSharpAddon.List.Members>", x => SendKeys.SendWait(TextFomatter.FirstLetterSmall(x)));
     builder.AddCommand("big <a,CSharpAddon.List.Members>", x => SendKeys.SendWait(TextFomatter.FormatClass(x)));
     //builder.AddCommand("<t1,CSharpAddon.List.Members> dot <t2,CSharpAddon.List.Members>[ dot <t3,CSharpAddon.List.Members>]", x => SendKeys.SendWait(x.Get("t1") + "." + x.Get("t2") + (x.IsAvailable("t3") ? ("." + x.Get("t3")) : "")));
     builder.AddCommand("<g,CSharp1Addon.List.Generics>of<t,CSharpAddon.List.Types>", x => SendKeys.SendWait(x.Get(0) + "<" + x.Get(1) + ">"));
     builder.AddCommand("<g,CSharpAddon.List.Generics>of<t1,CSharpAddon.List.Types>komma<t2,CSharpAddon.List.Types>", x => SendKeys.SendWait(x.Get(0) + "<" + x.Get(1) + "," + x.Get(2) + ">"));
     builder.AddCommand("new <a,CSharpAddon.List.Types>", (string x) => SendKeys.SendWait("new " + x));
     builder.AddCommand("new <g,CSharpAddon.List.Generics>of<t,CSharpAddon.List.Types>", x => SendKeys.SendWait("new " + x.Get(0) + "<" + x.Get(1) + ">"));
     builder.AddCommand("array of<t,CSharpAddon.List.Types>", x => SendKeys.SendWait(x.Get(0) + "[]"));
 }
Exemple #3
0
 public void Build(ICommandBuilder builder)
 {
     builder.AddCommand("<t,CSharpAddon.List.Types><m,CSharpAddon.List.Members>", x => SendKeys.SendWait(x.Get("t") + " " + TextFomatter.FirstLetterSmall(x.Get("m"))));
     builder.AddCommand("<t,CSharpAddon.Command.Generic><m,CSharpAddon.List.Members>", x => SendKeys.SendWait(/*x.Get("t") + */ " " + TextFomatter.FirstLetterSmall(x.Get("m"))));
 }