// public PropertyViewModel() { CollectionTypeSelectionChangedCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(CollectionTypeSelectionChanged); DynTypeSelectionChangedCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(DynTypeSelectionChanged); RelationTypeSelectionChangedCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(RelationTypeSelectionChanged); SqlTypeSelectionChangedCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(SqlTypeSelectionChanged); PersistableCheckedCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(PersistableChecked); PersistableUncheckedCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(PersistableUnChecked); TabControlSelectionChangedCommand = new DelegateCommand <object>(TabControlSelectionChanged); CollectionTypeSource = ApplicationDesignCache.CollectionTypeSource; DynTypeSource = ApplicationDesignCache.DynTypeSource; ListCollectionView listCollectionView = (ListCollectionView)CollectionViewSource.GetDefaultView(ApplicationDesignCache.StructSource); listCollectionView.SortDescriptions.Add(new SortDescription()); StructSource = ApplicationDesignCache.StructSource; RelationTypeSource = ApplicationDesignCache.RelationTypeSource; SqlTypeSource = ApplicationDesignCache.SqlTypeSource; ValidateTypeSource = ApplicationDesignCache.ValidateTypeSource; InputTypeSource = ApplicationDesignCache.InputTypeSource; GridColSortingSource = ApplicationDesignCache.GridColSortingSource; GridColTypeSource = ApplicationDesignCache.GridColTypeSource; GridColAlignSource = ApplicationDesignCache.GridColAlignSource; QueryFormSource = ApplicationDesignCache.QueryFormSource; DecimalDigitsReadOnly = true; }
/// <summary> /// Wires the filter command2. /// </summary> private void WireFilterCommand2() { ElementFilterChangedCommand = new DelegateCommand(() => { SourceFields.Filter = o => ElementEntryMatchesFilter2(o, CurrentElementFilter); }); }
/// <summary> /// Initializes a new instance of the <see cref="SearchBox"/> class. /// </summary> public SearchBox() { DefaultStyleKey = typeof(SearchBox); ClosePopupCommand = new DelegateCommand(ExecuteCloseCommand); CreateNewCommand = new DelegateCommand(ExecuteCreateNewCommand); CloseAdvancedCommand = new DelegateCommand(ExecuteCloseAdvancedCommand); DetailLevelChangedCommand = new DelegateCommand <DataTemplate> (ExecuteDetailLevelChanged); ResultTemplates = new ObservableCollection <DataTemplate> (); }
/// <summary> /// Initializes a new instance of the <see cref="ElementMappingViewModelBase{TWizardDataContextObject}"/> class. /// </summary> /// <param name="c">The c.</param> protected ElementMappingViewModelBase(TWizardDataContextObject c) : base(c) { SaveOrCancelPopupMappingCommand = new DelegateCommand <object>(UpdateMapping, CanUpdateMapping); RemoveMappingCommand = new DelegateCommand <MOriginalField>(ExecuteRemoveMapping, arg => true); ShowSampleValuesCommand = new DelegateCommand <string>(ExecuteShowSampleValuesCommand, arg => true); MappedFieldsForValues = new ObservableCollection <MOriginalField>(); }
/// <summary> /// Initializes a new instance of the <see cref="EditableExpander"/> class. /// </summary> public EditableExpander() { DefaultStyleKey = typeof(EditableExpander); SetAsNextCommand = new DelegateCommand(ExecuteSetAsNextCommand); MaximizeCommand = new DelegateCommand(ExecuteMaximizeCommand); _popupWindow = new PopupWindow(); _popupWindow.Closed += PopupClosed; _contentInTree = true; }
public override void LoadCommand() { SearchCommand = new DelegateCommand(Search); UnknownCommand = new DelegateCommand(UnknownExecute); ProduceFileCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(ProduceFileExecute); UpLoadFileCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(UpLoadFileExecute); // SendBillCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(SendBillExecute); // DeleteCommand = new DelegateCommand(DeleteExecute); }
private void HookupCommands() { FileDialogCommand = new DelegateCommand(LaunchFileDialog); OKCommand = new DelegateCommand <Window>(OK); CancelCommand = new DelegateCommand <Window>(Cancel); }
/// <summary> /// Initializes a new instance of the <see cref="EditableExpander"/> class. /// </summary> public EditableExpander() { DefaultStyleKey = typeof( EditableExpander ); SetAsNextCommand = new DelegateCommand ( ExecuteSetAsNextCommand ); MaximizeCommand = new DelegateCommand ( ExecuteMaximizeCommand ); _popupWindow = new PopupWindow (); _popupWindow.Closed += PopupClosed; _contentInTree = true; }
/// <summary> /// Initializes a new instance of the <see cref="SearchBox"/> class. /// </summary> public SearchBox() { DefaultStyleKey = typeof( SearchBox ); ClosePopupCommand = new DelegateCommand ( ExecuteCloseCommand ); CreateNewCommand = new DelegateCommand ( ExecuteCreateNewCommand ); CloseAdvancedCommand = new DelegateCommand ( ExecuteCloseAdvancedCommand ); DetailLevelChangedCommand = new DelegateCommand<DataTemplate> ( ExecuteDetailLevelChanged ); ResultTemplates = new ObservableCollection<DataTemplate> (); }