bool GetBoolean(org.freedesktop.DBus.Properties dbusobj, string path, string propname) { try { return(Boolean.Parse(dbusobj.Get(path, propname).ToString())); } catch (Exception) { return(false); } }
bool GetBoolean(org.freedesktop.DBus.Properties dbusobj, string path, string propname) { try { return(Boolean.Parse(dbusobj.Get(path, propname).ToString())); } catch (Exception e) { Log.Error("{0}", e.Message); Log.Debug(e.StackTrace); return(false); } }
public string GetProperty(string name) { return(_properties.Get(String.Empty, name).ToString()); }