Exemplo n.º 1
0
        /// <summary>
        /// Add the query to the list of queries
        /// </summary>
        /// <param name="filter"> filter containing the query </param>
        public void AddQuery(CustomFilter filter)
        {
            var filtertoAdd = new FilterQueryViewModel(filter);

            _queries.Add(filtertoAdd);
            filtertoAdd.QueryDeleted    += ExecuteCancel;
            filtertoAdd.PropertyChanged += (sender, args) => NotifyPropertyChanged(() => Queries);
            NotifyPropertyChanged(() => Queries);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add the query to the list of queries
        /// </summary>
        /// <param name="query">Query to add</param>
        public void AddQuery(string query)
        {
            var querytoAdd = new FilterQueryViewModel(query);

            _queries.Add(querytoAdd);
            querytoAdd.QueryDeleted    += ExecuteCancel;
            querytoAdd.PropertyChanged += (sender, args) => NotifyPropertyChanged(() => Queries);
            NotifyPropertyChanged(() => Queries);
        }