public SubassemblyManagerViewModel(Logger logger, App app, SubassemblyHelper subHelper) { this.logger = logger; this.app = app; this.helper = subHelper; Subassemblies = new ObservableCollection<SubassemblyItem>(); this.ModifyFormulaCommand = new RelayCommand<PropertyElement>(this.ModifySelectedFormula, this.CanModify); this.SelectInsertPointCommmand = new RelayCommand(this.SelectPoint, this.IsCurrentNull); this.AddNewSubassemblyCommand = new RelayCommand<Object>(this.AddNewSub); this.ShowSubassemblyPromptCommand = new RelayCommand(this.ShowPrompt, this.IsCurrentNull); this.TurnSubIntoUniqueCommand = new RelayCommand(this.TurnSubIntoUnique, this.IsCurrentUnique); this.SelectRangeSizeCommand = new RelayCommand(this.SelectRange, this.IsCurrentNull); this.CopySubCommand = new RelayCommand(this.CopySub, this.IsCurrentNull); this.DeleteSubCommand = new RelayCommand(this.DelSub, this.IsCurrentNull); }
public SubassemblyManagerViewModel(Logger logger, App app, SubassemblyHelper subHelper) { this.logger = logger; this.app = app; this.helper = subHelper; Subassemblies = new ObservableCollection <SubassemblyItem>(); this.ModifyFormulaCommand = new RelayCommand <PropertyElement>(this.ModifySelectedFormula, this.CanModify); this.SelectInsertPointCommmand = new RelayCommand(this.SelectPoint, this.IsCurrentNull); this.AddNewSubassemblyCommand = new RelayCommand <Object>(this.AddNewSub); this.ShowSubassemblyPromptCommand = new RelayCommand(this.ShowPrompt, this.IsCurrentNull); this.TurnSubIntoUniqueCommand = new RelayCommand(this.TurnSubIntoUnique, this.IsCurrentUnique); this.SelectRangeSizeCommand = new RelayCommand(this.SelectRange, this.IsCurrentNull); this.CopySubCommand = new RelayCommand(this.CopySub, this.IsCurrentNull); this.DeleteSubCommand = new RelayCommand(this.DelSub, this.IsCurrentNull); }