private void ActivityDiagramMenuItem_Click(object sender, RoutedEventArgs e) { try { if (activityDiagramPage == null) { activityDiagramPage = new ActivityDiagramPage(softwareProcessProfile); } ContentFrame.Navigate(activityDiagramPage); statusLabel.Text = "Activity Diagram"; } catch (Exception ex) { new Utils().ShowExceptionMessageBox(ex); } }
private void UnloadProfileMenuItem_Click(object sender, RoutedEventArgs e) { ContentFrame.Navigate(startPage); statusLabel.Text = "Start page"; softwareProcessProfile = null; activityDiagramPage = null; classDiagramPage = null; ActivityDiagram.IsEnabled = false; LoadProfile.IsEnabled = true; UnloadProfile.IsEnabled = false; statusLabel.Text = null; profileInfoLabel.Text = "Process profile file not loaded"; profileInfoLabel.Foreground = Brushes.Red; ActivityDiagram.IsEnabled = false; ClassDiagram.IsEnabled = false; UseCaseDiagram.IsEnabled = false; }