示例#1
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            var viewModel = new TaskManagementViewModel();

            DataContext = viewModel;

            Yield.Call(viewModel.Activate());
        }
示例#2
0
        private static void HandleReturnValue(object returnValue)
        {
            var routine = returnValue as IEnumerable <IAction>;

            if (routine != null)
            {
                Yield.Call((routine));
            }
        }
示例#3
0
        void downloadButton_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(urlTextBox.Text))
            {
                return;
            }

            Yield.Call(BackgroundDownload(new Uri(urlTextBox.Text), queueListBox.Items.Count));
        }
示例#4
0
 private void NewsForm_Load(object sender, EventArgs e)
 {
     Yield.Call(UpdateNews());
 }