//------------------------------------------------------- private void roll_back_Click(object sender, RoutedEventArgs e) { if (link_file.SelectedItem != null) { F_ListBox.Roll_Back_Save_Data_Check(my_element_change, link_file, uiapp, doc_link, doc, my_parameter_settings); data_revit_link item = (data_revit_link)link_file.SelectedItem; doc_link = item.document; my_element_change = new ObservableCollection <Element_Change>(); F_All.Check_Element(doc, doc_link, my_parameter_settings, my_element_change); Add_Element_Change(); } }
private void Check_Click(object sender, RoutedEventArgs e) { try { if (link_file.SelectedItem != null) { data_revit_link item = (data_revit_link)link_file.SelectedItem; doc_link = item.document; my_element_change = new ObservableCollection <Element_Change>(); F_All.Check_Element(doc, doc_link, my_parameter_settings, my_element_change); Add_Element_Change(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }