示例#1
0
 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();
 }
示例#2
0
 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();
     }
 }
示例#3
0
 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();
 }
示例#4
0
 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");
     }
 }