Esempio n. 1
0
        /// <summary>
        /// Inicia una nueva instancia de la clase <see cref="QueryInteractionView" />.
        /// </summary>
        public QueryMultipleInteractionView()
        {
            this.adapter     = new BaseDialogAdapter <IEnumerable <IKeyValueItem> >(new MultiSelectQueryDialogViewModel());
            this.DataContext = this.ViewModel;

            this.ViewModel.CancelCommand = new DelegateCommand(this.Cancel);
            this.ViewModel.OkCommand     = new DelegateCommand(this.Ok);

            this.InitializeComponent();
        }
        /// <summary>
        /// Inicia una nueva instancia de la clase <see cref="ConfirmDeleteInteractionView" />.
        /// </summary>
        public MessageBoxInteractionView()
        {
            this.adapter     = new BaseDialogAdapter <MessageBoxResult>(new MessageBoxViewModel());
            this.DataContext = ViewModel;

            this.ViewModel.CancelCommand = new DelegateCommand(Cancel);
            this.ViewModel.OkCommand     = new DelegateCommand(Ok);
            this.ViewModel.YesCommand    = new DelegateCommand(Yes);
            this.ViewModel.NoCommand     = new DelegateCommand(No);

            this.InitializeComponent();
        }
Esempio n. 3
0
        /// <summary>
        /// Inicia una nueva instancia de la clase <see cref="QueryInteractionView" />.
        /// </summary>
        public QueryInteractionView()
        {
            this.adapter     = new BaseDialogAdapter <BaseKeyValueItem>(new QueryDialogViewModel());
            this.DataContext = this.ViewModel;

            this.ViewModel.CancelCommand = new DelegateCommand(Cancel);
            this.ViewModel.OkCommand     = new DelegateCommand(Ok);

            this.InitializeComponent();

            radDataFilter1.ItemPropertyDefinitions.Add(new Telerik.Windows.Controls.Data.DataFilter.ItemPropertyDefinition("Id", typeof(string), "Id"));
            radDataFilter1.ItemPropertyDefinitions.Add(new Telerik.Windows.Controls.Data.DataFilter.ItemPropertyDefinition("Nombre", typeof(string), "Nombre"));
        }