protected void btnDelete_Click(object sender, ImageClickEventArgs e)
    {
        FilterItemClicked fic = new FilterItemClicked(new QueryFilterItem(Title, Description, PropName));

        if (DeleteItemClicked != null)
        {
            DeleteItemClicked(this, fic);
        }
    }
 protected void mfbQueryDescriptor1_QueryUpdated(object sender, FilterItemClicked fic)
 {
     if (fic == null)
     {
         throw new ArgumentNullException("fic");
     }
     Restriction.ClearRestriction(fic.FilterItem);
     UpdateRestriction();
 }
예제 #3
0
 protected void mfbQueryDescriptor1_QueryUpdated(object sender, FilterItemClicked fic)
 {
     if (fic == null)
     {
         throw new ArgumentNullException("fic");
     }
     mfbSearchForm1.Restriction = mfbSearchForm1.Restriction.ClearRestriction(fic.FilterItem);   // need to set the restriction in order to persist it (since it updates the view)
     ShowResults(sender, new FlightQueryEventArgs(mfbSearchForm1.Restriction));
 }
 protected void mfbQueryDescriptor_QueryUpdated(object sender, FilterItemClicked fic)
 {
     if (fic == null)
     {
         throw new ArgumentNullException(nameof(fic));
     }
     mfbSearchForm.Restriction = Restriction.ClearRestriction(fic.FilterItem);
     UpdateQuery();
 }
예제 #5
0
 protected void mfbQueryDescriptor1_QueryUpdated(object sender, FilterItemClicked fic)
 {
     if (fic == null)
     {
         throw new ArgumentNullException("fic");
     }
     mfbSearchForm1.Restriction = mfbSearchForm1.Restriction.ClearRestriction(fic.FilterItem);
     ShowResults(sender, new FlightQueryEventArgs(mfbSearchForm1.Restriction));
 }
예제 #6
0
 protected void mfbQueryDescriptor_QueryUpdated(object sender, FilterItemClicked fic)
 {
     if (fic == null)
     {
         throw new ArgumentNullException("fic");
     }
     mfbSearchForm1.Restriction = mfbSearchForm1.Restriction.ClearRestriction(fic.FilterItem);
     Refresh();
 }
예제 #7
0
 protected void mfbQueryDescriptor_QueryUpdated(object sender, FilterItemClicked fic)
 {
     if (fic == null)
     {
         throw new ArgumentNullException("fic");
     }
     mfbSearchForm1.Restriction = mfbSearchForm1.Restriction.ClearRestriction(fic.FilterItem);
     FilterResults(sender, new FlightQueryEventArgs(mfbSearchForm1.Restriction));
     lnkReturnToFlights.NavigateUrl = String.Format(CultureInfo.InvariantCulture, "~/Member/LogbookNew.aspx?fq={0}", HttpUtility.UrlEncode(mfbSearchForm1.Restriction.ToBase64CompressedJSONString()));
 }
    protected void filterItem_DeleteItemClicked(object sender, FilterItemClicked fic)
    {
        if (fic == null)
        {
            throw new ArgumentNullException("fic");
        }

        if (QueryUpdated != null)
        {
            QueryUpdated(sender, fic);
        }
    }
    protected void mfbQueryDescriptor1_QueryUpdated(object sender, FilterItemClicked fic)
    {
        if (fic == null)
        {
            throw new ArgumentNullException("fic");
        }
        FlightQuery fq = Restriction.ClearRestriction(fic.FilterItem);

        ShowResults(sender, new FlightQueryEventArgs(fq));
        UpdateDescription();

        if (QuerySubmitted != null)
        {
            QuerySubmitted(sender, new FlightQueryEventArgs(fq));
        }
    }