/// <summary> /// Sets the dialog result when clicking the Next button. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">Event arguments that contains the event data.</param> private void buttonNext_Click(object sender, RoutedEventArgs args) { m_result = IFCExportResult.ExportAndSaveSettings; Close(); }
/// <summary> /// Sets the dialog result when clicking the Cancel button. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">Event arguments that contains the event data.</param> private void buttonCancel_Click(object sender, RoutedEventArgs args) { m_result = IFCExportResult.Cancel; Close(); }
/// <summary> /// Sets the dialog result when clicking the Next button. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">Event arguments that contains the event data.</param> private void buttonNext_Click(object sender, RoutedEventArgs args) { List<CheckBox> cbList = this.listViewDocuments.Items.Cast<CheckBox>().ToList(); int count = 0; foreach (CheckBox cb in cbList) { if ((bool)cb.IsChecked) DocumentsToExport.Add(OrderedDocuments[count]); count++; } if (DocumentsToExport.Count == 0) { MessageBox.Show(Properties.Resources.SelectOneOrMoreProjects, Properties.Resources.IFCExport, MessageBoxButton.OK, MessageBoxImage.Error); return; } Result = IFCExportResult.ExportAndSaveSettings; Close(); }