void controller_OnImportApprovalListComplete(object sender, ControllerActionEventArgs e) { if (e.Success) { if (!String.IsNullOrEmpty(e.Message)) MessageBox.Show(e.Message, "Notification"); } else { MessageBox.Show("Error happened during importing approval list. Details:\n" + e.Message, "Error"); } EnableForm(); }
void controller_OnInitComplete(object sender, ControllerActionEventArgs e) { if (e.Success) { if (e.Summary.PendingTasksCount > 0) { Console.WriteLine("There are {0} new tasks", e.Summary.PendingTasksCount); doTasks.Enabled = true; } else { EnableForm(); } } else { MessageBox.Show("Could not start the business logic implementor: " + e.Message); Close(); } }
void controller_OnLoadProductsComplete(object sender, ControllerActionEventArgs e) { if (e.Success) { if(!String.IsNullOrEmpty(e.Message)) MessageBox.Show(e.Message, "Notification"); } else { MessageBox.Show("Error happened during loading products. Details:\n" + e.Message, "Error"); } EnableForm(); }
void controller_OnProcessTasksComplete(object sender, ControllerActionEventArgs e) { if (e.Success) { if (!String.IsNullOrEmpty(e.Message)) MessageBox.Show(e.Message, "Notification"); EnableForm(); } else { MessageBox.Show("Error happened during processing of tasks. Please re-open application and try again. Details:\n" + e.Message, "Error"); } }