private void buttonCancel_Click(object sender, RoutedEventArgs e) { MessageBoxResult result = System.Windows.MessageBox.Show("Would you like to stop processing the View Analysis?", "Cancellation - View Analysis", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { AbortFlag.SetAbortFlag(true); } }
public MainWindow(UIApplication uiapp, List <Room> rooms) { m_app = uiapp; m_doc = m_app.ActiveUIDocument.Document; selectedRooms = rooms; AbortFlag.SetAbortFlag(false); InitializeComponent(); DisplaySettings(); this.Title = "LEED EQc 8.2 - View Analysis v." + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); }