private void UserControl_Loaded(object sender, RoutedEventArgs e) { var viewModel = new TaskManagementViewModel(); DataContext = viewModel; Yield.Call(viewModel.Activate()); }
private static void HandleReturnValue(object returnValue) { var routine = returnValue as IEnumerable <IAction>; if (routine != null) { Yield.Call((routine)); } }
void downloadButton_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(urlTextBox.Text)) { return; } Yield.Call(BackgroundDownload(new Uri(urlTextBox.Text), queueListBox.Items.Count)); }
private void NewsForm_Load(object sender, EventArgs e) { Yield.Call(UpdateNews()); }