// play the avi
theRule.Add(
new KeyValuePair<Func<string, bool>, Func<string,string>>(
s => File.Exist(s) && s.EndWith(".avi"),
s => { Play(s); return s; })
);
theRule.Add(
new KeyValuePair<Func<string, bool>, Func<string,string>>(
s => IsValidDate(s),
s => ModifyDate(s))
);
}