Esempio n. 1
0
        private void cmdMakeRelease_Click(object sender, EventArgs e)
        {
            tbxLog.Clear();
            Customer customer = listView1.SelectedItems[0].Tag as Customer;

            ReleaseEngine.MakeRelease(this, tbxReleaseLabel.Text, customer);
        }
Esempio n. 2
0
        private void cmdMakeRelease_Click(object sender, EventArgs e)
        {
            InitRichTextBox();
            // return;
            Customer customer = listView1.SelectedItems[0].Tag as Customer;
            var      task     = new Task(() => ReleaseEngine.MakeRelease(new object[] { this, String.Format(tbxReleaseLabel.Text, DateTime.Now),
                                                                                        customer,
                                                                                        cbClean.Checked }));

            task.ContinueWith(ExceptionHandler, TaskContinuationOptions.OnlyOnFaulted);
            task.Start();
        }