public void refreshBatchNameAndBatchAction() { object newActionName; object newBatchName; BatchConfiguration.TryGetValue(BatchConfigurationFieldName.BatchName, out newBatchName); BatchConfiguration.TryGetValue(BatchConfigurationFieldName.BatchActionName, out newActionName); BatchName = (string)((KeyValuePair <string, object>)newBatchName).Value; ActionName = (string)((KeyValuePair <string, object>)newActionName).Value; }