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())); }
private SerializedCommand CreateCommand( SerializedCommand.UndoRedo undoRedo, string cmd, string file) { return(new SerializedCommand( GetType(), undoRedo, cmd, new string[] { file })); }