public Dictionary<string, string> GetAllValues(){
_fetch();
return new Dictionary<string, string>(_elementValues);
}
public override void Execute (FormDialogViewController controller, Element element, Action completed) { Console.WriteLine("ShowValuesInConsole"); ThreadPool.QueueUserWorkItem( delegate { System.Threading.Thread.Sleep(2000); var values = controller.GetAllValues(); foreach (var v in values){ Console.WriteLine("Value => {0} - {1}", v.Key, v.Value); } element.Caption = "Action completed!"; completed(); } ); }