public ComponentViewModel(BCFViewModel bcfViewModel, Dictionary <string, RevitLinkProperties> links, Dictionary <string, RevitComponent> comps, BCFHandler handler, ExternalEvent extEvent) { try { bcfView = bcfViewModel; m_handler = handler; m_event = extEvent; linkDictionary = links; compDictionary = comps; moveComponentCommand = new RelayCommand(param => this.MoveComponentExecuted(param)); writeParametersCommand = new RelayCommand(param => this.WriteParametersExecuted(param)); applyViewCommand = new RelayCommand(param => this.ApplyViewExecuted(param)); highlightCommand = new RelayCommand(param => this.HighlightExecuted(param)); isolateCommand = new RelayCommand(param => this.IsolateExecuted(param)); sectionboxCommand = new RelayCommand(param => this.SectionBoxExecuted(param)); componentChangedCommand = new RelayCommand(param => this.ComponentChanged(param)); RefreshComponents(); } catch (Exception ex) { string message = ex.Message; } }
public AddViewModel(BCFViewModel bcfViewModel) { bcfView = bcfViewModel; browseCommand = new RelayCommand(param => this.BrowseExecuted(param)); addCommand = new RelayCommand(param => this.AddExecuted(param)); SetSelectedMarkup(); }
public AddViewModel(BCFViewModel bcfViewModel, ExternalEvent exEvent, BCFHandler handler) { bcfView = bcfViewModel; m_handler = handler; m_event = exEvent; browseCommand = new RelayCommand(param => this.BrowseExecuted(param)); addCommand = new RelayCommand(param => this.AddExecuted(param)); snapshotCommand = new RelayCommand(param => this.SnapshotExecuted(param)); SetSelectedMarkup(); }
public WindowViewModel(ExternalEvent exEvent, BCFHandler handler) { m_event = exEvent; m_handler = handler; bcfViewModel = new BCFViewModel(true); linkDictionary = CollectLinkInfo(); compDictionary = CollectElementInfo(); componentCommad = new RelayCommand(param => this.ComponentExecuted(param)); issueChangedCommand = new RelayCommand(param => this.IssueChanged(param)); componentChangedCommand = new RelayCommand(param => this.ComponentChanged(param)); addViewCommand = new RelayCommand(param => this.AddViewCommandExecuted(param)); }
public SettingsWindow(BCFViewModel bcfViewModel) { viewModel = bcfViewModel; primaryIndex = viewModel.PrimaryFileIndex; extInfo = viewModel.BCFFiles[primaryIndex].ExtensionColor; InitializeComponent(); comboBoxParameter.ItemsSource = null; comboBoxParameter.ItemsSource = parameters; dataGridColor.ItemsSource = extInfo.Extensions; comboBoxPrimary.ItemsSource = viewModel.BCFFiles; comboBoxPrimary.DisplayMemberPath = "ZipFileName"; comboBoxPrimary.SelectedIndex = viewModel.PrimaryFileIndex; }
public WindowViewModel() { bcfViewModel = new BCFViewModel(false); addViewCommand = new RelayCommand(param => this.AddViewCommandExecuted(param)); }