Exemplo n.º 1
0
        private SerializedCommand CreateCommand(string fileName, byte[][] tags, SerializedCommand.UndoRedo action)
        {
            List <string> args = new List <string>();

            args.Add(fileName);
            args.AddRange(from item in tags select Convert.ToBase64String(item));

            return(new SerializedCommand(GetType(), action, "Tag", args.ToArray()));
        }
Exemplo n.º 2
0
 private SerializedCommand CreateCommand(
     SerializedCommand.UndoRedo undoRedo,
     string cmd,
     string file)
 {
     return(new SerializedCommand(
                GetType(),
                undoRedo,
                cmd,
                new string[] { file }));
 }