Exemple #1
0
        private void InitializeValues()
        {
            string s = Result;

            // what do we have in the fieldvalue now?
            if (string.IsNullOrEmpty(s))
            {
                return;
            }
            if (s.Contains(OR_SEPARATOR))
            {
                rbAny.IsChecked = true;
                PopulateTextBoxes(s.Split(new[] { OR_SEPARATOR }, StringSplitOptions.None));
            }
            else if (s.Contains(AND_SEPARATOR))
            {
                rbAll.IsChecked = true;
                PopulateTextBoxes(s.Split(new[] { AND_SEPARATOR }, StringSplitOptions.None));
            }
            else
            {
                TextBoxes.First().Text = s;
            }
        }