Exemple #1
0
 /// <summary>
 /// Creates the state transition graph in DGML
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnState_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Mouse.OverrideCursor = Cursors.Wait;
         WorkItem[] w = GetSelectedWorkItems();
         if (w == null || w.Length == 0)
         {
             MessageBox.Show("To run a state visualization, select a single work item first.");
         }
         else
         {
             ProcessStateDGML data = new ProcessStateDGML();
             data.ProcessStates(w[0], txtOutput.Text);
         }
     }
     catch (UnauthorizedAccessException ex)
     {
         MessageBox.Show(ex.Message, "Unauthorized Access Exception");
     }
     finally
     {
         Mouse.OverrideCursor = null;
     }
 }
 /// <summary>
 /// Creates the state transition graph in DGML
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnState_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Mouse.OverrideCursor = Cursors.Wait;
         WorkItem[] w = GetSelectedWorkItems();
         if (w == null || w.Length == 0)
         {
             MessageBox.Show("To run a state visualization, select a single work item first.");
         }
         else
         {
             ProcessStateDGML data = new ProcessStateDGML();
             data.ProcessStates(w[0], txtOutput.Text);
         }
     }
     catch (UnauthorizedAccessException ex)
     {
         MessageBox.Show(ex.Message, "Unauthorized Access Exception");
     }
     finally
     {
         Mouse.OverrideCursor = null;
     }
 }