예제 #1
0
 bool GetBoolean(org.freedesktop.DBus.Properties dbusobj, string path, string propname)
 {
     try {
         return(Boolean.Parse(dbusobj.Get(path, propname).ToString()));
     } catch (Exception) {
         return(false);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public string GetProperty(string name)
 {
     return(_properties.Get(String.Empty, name).ToString());
 }