Пример #1
0
 public Plugin(AddInToken token)
 {
     _token                  = token;
     _pluginName             = osae.GetPluginName(_token.Name, osae.ComputerName);
     _pluginType             = _token.Name;
     _pluginVersion          = _token.Version;
     _latestAvailableVersion = "";
 }
 private void Load_App_Name()
 {
     try
     {
         gAppName = OSAEApi.GetPluginName("VR CLIENT", OSAEApi.ComputerName);
         if (gAppName == "")
         {
             gAppName = "VR CLIENT-" + OSAEApi.ComputerName;
             OSAEApi.ObjectAdd(gAppName, gAppName, "VR CLIENT", "", "SYSTEM", true);
             OSAEApi.ObjectPropertySet(gAppName, "Computer Name", OSAEApi.ComputerName);
         }
     }
     catch (Exception ex)
     {
         AddToLog("Error messaging host: " + ex.Message);
     }
 }