private void miCustomSize_Click(object sender, RoutedEventArgs e)
        {
            SizeSearchCriteriaDialog dat = new SizeSearchCriteriaDialog();
            string sd = GetValueOnly("size", edtSearchBox.SizeCondition);
            dat.curval.Text = sd;

            dat.ShowDialog();

            if (dat.Confirm == true)
            {
                edtSearchBox.SizeCondition = "size:" + dat.GetSizeQuery();

                if (dat.GetSizeQuery().Length > 0)
                {
                    scSize.IsChecked = true;
                }
                else
                {
                    scSize.IsChecked = false;
                }
            }
            else
            {
                if (edtSearchBox.SizeCondition.Length > 5)
                {
                    scSize.IsChecked = true;
                }
                else
                {
                    scSize.IsChecked = false;
                }
            }
        }
Esempio n. 2
0
    private void miCustomSize_Click(object sender, RoutedEventArgs e) {
      var dat = new SizeSearchCriteriaDialog();
      string sd = Utilities.GetValueOnly("size", edtSearchBox.SizeCondition);
      dat.curval.Text = sd;
      dat.ShowDialog();

      if (dat.Confirm) {
        edtSearchBox.SizeCondition = "size:" + dat.GetSizeQuery();
        scSize.IsChecked = dat.GetSizeQuery().Any();
      } else {
        scSize.IsChecked = dat.GetSizeQuery().Length > 5;
      }
    }