Exemplo n.º 1
0
 private void SubjectToggle_Click(object sender, RoutedEventArgs e)
 {
     StringSearchCriteriaDialog dat = new StringSearchCriteriaDialog("subject", edtSearchBox.SubjectCondition);
     dat.ShowDialog();
     if (dat.Confirm == true)
     {
         edtSearchBox.SubjectCondition = "subject:" + dat.textBox1.Text;
         if (dat.textBox1.Text.Length > 0)
         {
             SubjectToggle.IsChecked = true;
         }
         else
         {
             SubjectToggle.IsChecked = false;
         }
     }
     else
     {
         if (GetValueOnly("subject", edtSearchBox.SubjectCondition).Length > 0)
         {
             SubjectToggle.IsChecked = true;
         }
         else
         {
             SubjectToggle.IsChecked = false;
         }
     }
 }
Exemplo n.º 2
0
 private void SubjectToggle_Click(object sender, RoutedEventArgs e) {
   var dat = new StringSearchCriteriaDialog("subject", edtSearchBox.SubjectCondition, FindResource("btnSubjectCP") as string);
   dat.ShowDialog();
   if (dat.Confirm) {
     edtSearchBox.SubjectCondition = "subject:" + dat.textBox1.Text;
     SubjectToggle.IsChecked = dat.textBox1.Text.Any();
   } else {
     SubjectToggle.IsChecked = Utilities.GetValueOnly("subject", edtSearchBox.SubjectCondition).Any();
   }
 }
Exemplo n.º 3
0
 private void ToggleButton_Click_1(object sender, RoutedEventArgs e)
 {
     StringSearchCriteriaDialog dat = new StringSearchCriteriaDialog("ext", edtSearchBox.ExtensionCondition);
     dat.ShowDialog();
     if (dat.Confirm == true)
     {
         edtSearchBox.ExtensionCondition = "ext:" + dat.textBox1.Text;
         if (dat.textBox1.Text.Length > 0)
         {
             ExtToggle.IsChecked = true;
         }
         else
         {
             ExtToggle.IsChecked = false;
         }
     }
     else
     {
         if (GetValueOnly("ext", edtSearchBox.ExtensionCondition).Length > 0)
         {
             ExtToggle.IsChecked = true;
         }
         else
         {
             ExtToggle.IsChecked = false;
         }
     }
 }
Exemplo n.º 4
0
 private void ToggleButton_Click_1(object sender, RoutedEventArgs e) {
   var dat = new StringSearchCriteriaDialog("ext", edtSearchBox.ExtensionCondition, FindResource("btnExtCP") as string);
   dat.ShowDialog();
   if (dat.Confirm) {
     edtSearchBox.ExtensionCondition = "ext:" + dat.textBox1.Text;
     ExtToggle.IsChecked = dat.textBox1.Text.Any();
   } else {
     ExtToggle.IsChecked = Utilities.GetValueOnly("ext", edtSearchBox.ExtensionCondition).Any();
   }
 }