/// <summary> /// Create an instance of the mfg import command /// </summary> public RwMfgImportViewModel() { planningObject = null; isSelectedPlanningObjectValid = false; MfgCollection = new ObservableCollection <string>(); SourceFilename = string.Empty; ChooseSourceFileCommand = new RwActionCommand(ChooseSourceFileExecuted, ChooseSourceFileCanExecute); ExecuteMfgImportCommand = new RwActionCommand(MfgImportExecuted, MfgImportCanExecute); MfgLibraryPickedEvent = new RwActionCommand(MfgLibraryPickedExecuted, MfgLibraryPickedCanExecute); }
/// <summary> /// Create an instance of the create logical groups command /// </summary> public RwCreateLogicalGroupsFromCompoundPartsViewModel() { LogicalGroupsGroupBoxHeader = "Logical Groups"; GroupingRulesTooltip = "Separator is |"; SelectedGrouping = RwLogicalGroupCreationModes.VARIANTNAME; CanEnableGroupingRulesInput = false; LogicalGroupsData = new ObservableCollection <RwLogicalGroupViewModel>(); GroupingRuleCommand = new RwActionCommand(SetGroupingRuleExecuted, SetGroupingRuleCanExecute); ExecuteLogicalGroupsCreationCommand = new RwActionCommand(LogicalGroupsCreationExecuted, LogicalGroupsCreationCanExecute); CompoundPartPickedEvent = new RwActionCommand(CompoundPartPickedExecuted, CompoundPartPickedCanExecute); LogicalGroupsData.CollectionChanged += OnLogicalGroupsDataCollectionChanged; }
/// <summary> /// Create an instance of the mfg export command /// </summary> public RwExportMfgViewModel() { MfgGroupBoxHeader = "Manufacturing features export list"; Mfgs = new ObservableCollection <TxMfgFeature>(); Mfgs.CollectionChanged += MfgCollectionChanged; TargetFilename = string.Empty; AddMfgsToCollection(); AddSelectionToCollectionCommand = new RwActionCommand(AddSelectionToCollectionExecuted, AddSelectionToCollectionCanExecute); ClearCollectionCommand = new RwActionCommand(ClearCollectionExecuted, ClearCollectionCanExecute); ChooseTargetFileCommand = new RwActionCommand(ChooseTargetFileExecuted, ChooseTargetFileCanExecute); ExecuteExportMfgsCommand = new RwActionCommand(ExportMfgsExecuted, ExportMfgsCanExecute); }
/// <summary> /// Create an instance of the mfg import command /// </summary> public RwImportMfgViewModel() { planningObject = null; isSelectedPlanningObjectValid = false; MfgCollection = new ObservableCollection <string>(); defaultMfgGroupBoxHeader = "Manufacturing features import list"; MfgGroupBoxHeader = defaultMfgGroupBoxHeader; SourceFilename = string.Empty; ChooseSourceFileCommand = new RwActionCommand(ChooseSourceFileExecuted, ChooseSourceFileCanExecute); ExecuteMfgImportCommand = new RwActionCommand(MfgImportExecuted, MfgImportCanExecute); MfgLibraryPickedEvent = new RwActionCommand(MfgLibraryPickedExecuted, MfgLibraryPickedCanExecute); MfgCollection.CollectionChanged += OnMfgCollectionChanged; }
public RwRoboticOperationViewModel() { locationOperations = new ObservableCollection <RoboticLocationViewModel>(); AddSelectedPathsToViewerCommand = new RwActionCommand(OnAddSelectedPathsToViewerExecuted, OnAddSelectedPathsToViewerCanExecute); AddPathsFromPathEditorToViewerCommand = new RwActionCommand(OnAddPathsFromPathEditorToViewerExecuted, OnAddPathsFromPathEditorToViewerCanExecute); RemovePathsFromViewerCommand = new RwActionCommand(OnRemovePathsFromViewerExecuted, OnRemovePathsFromViewerCanExecute); ReachabilityCommand = new RwActionCommand(OnReachabilityExecuted, OnReachabilityCanExecute); AxisLimitsCommand = new RwActionCommand(OnAxisLimitsExecuted, OnAxisLimitsCanExecute); CollisionStatusCommand = new RwActionCommand(OnCollisionStatusExecuted, OnCollisionStatusCanExecute); BindToExcelCommand = new RwActionCommand(OnBindToExcelExecuted, OnBindToExcelCanExecute); ShowOptionsCommand = new RwActionCommand(OnShowOptionsExecuted, OnShowOptionsCanExecute); CreateView(); }
/// <summary> /// Create an instance of the frame creation command /// </summary> public RwCreateFramesFromListViewModel() { FrameGroupBoxHeader = "Frame data"; SourceFilename = string.Empty; FramesData = new ObservableCollection <RwFrameCreationViewModel>(); FramePrefix = "fr_"; FrameSuffix = string.Empty; ReferenceFrame = null; originalFrame = TxApplication.ActiveDocument.WorkingFrame; ChooseSourceFileCommand = new RwActionCommand(ChooseSourceFileExecuted, ChooseSourceFileCanExecute); ExecuteFrameCreationCommand = new RwActionCommand(FrameCreationExecuted, FrameCreationCanExecute); ReferenceFramePickedEvent = new RwActionCommand(ReferenceFramePickedExecuted, ReferenceFramePickedCanExecute); FramesData.CollectionChanged += FrameCollectionChanged; }
/// <summary> /// Create an instance of the Mfg to MfgLibraries relationships /// </summary> public RwQueryMfgViewModel() { ReferenceMfgLibrariesGroupBoxHeader = "Reference Mfg libraries"; StudyMfgFeaturesGroupBoxHeader = "Mfg features in current study"; ExportGroupBoxHeader = "Data export"; ReferenceMfgLibraries = new ObservableCollection <RwMfGLibrary>(); StudyMfgFeatures = new ObservableCollection <RwMfgFeature>(); AddReferenceMfgLibrariesCommand = new RwActionCommand(AddReferenceMfgLibrariesExecuted, AddReferenceMfgLibrariesCanExecute); ClearReferenceMfgLibrariesCommand = new RwActionCommand(ClearReferenceMfgLibrariesExecuted, ClearReferenceMfgLibrariesCanExecute); ExportRuleCommand = new RwActionCommand(ExportRuleExecuted, ExportRuleCanExecute); ExportStudyMfgFeaturesCommand = new RwActionCommand(ExportStudyFeaturesExecuted, ExportStudyFeaturesCanExecute); empContext = new EmpApplication().Context; exportRule = "A"; }