Beispiel #1
0
 private void GetVariable(string name, ComboBox box)
 {
     SaveHistory(box);
     if (user != null)
     {
         var value = user.Predicates.grabSetting(name);
         if (value != null)
         {
             InvokeIfNeeded(box, () => box.Text = robot.ToValueString(value));
         }
     }
 }
Beispiel #2
0
        public string Entify(object subject0)
        {
            var subject = TheBot.ToValueString(subject0);

            if (string.IsNullOrEmpty(subject))
            {
                return("");
            }
            string subj = subject.Replace("_", " ");

            subj = subject.Replace(".", " ");
            return(subj.Trim());
        }