private void SeleniumStarted(object sender, AsyncTasks.EventArgs.AsyncTaskEventArgs eventArgs) { StartSeleniumTask task = eventArgs.Task as StartSeleniumTask; Selenium.Add(task.Type, task.Selenium); }