private void RemoveCondition(PluginCondition obj) { Config.Conditions.Remove(obj); }
private void GetValue(PluginCondition obj) { try { var processor = new CommandLineProcessor(); var resp = processor.Pharse(new[] {"get", obj.Variable}); obj.Value = resp.ToString(); } catch (Exception ex) { Log.Error("GetValue",ex); } }